Skip to content

Commit

Permalink
fix project edition
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed Dec 16, 2019
1 parent bf0e4e8 commit 0381c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3724,7 +3724,7 @@ def hackathon_get_project(request, bounty_id, project_id=None):
profile = request.user.profile if request.user.is_authenticated and hasattr(request.user, 'profile') else None

try:
bounty = Bounty.objects.current().get(id=bounty_id)
bounty = Bounty.objects.get(id=bounty_id)
projects = HackathonProject.objects.filter(bounty__standard_bounties_id=bounty.standard_bounties_id, profiles__id=profile.id).nocache()
except HackathonProject.DoesNotExist:
pass
Expand Down Expand Up @@ -3763,7 +3763,7 @@ def hackathon_save_project(request):
'msg': '',
})

bounty_obj = Bounty.objects.current().get(pk=bounty_id)
bounty_obj = Bounty.objects.get(pk=bounty_id)

kwargs = {
'name': clean(request.POST.get('name'), strip=True),
Expand Down

0 comments on commit 0381c24

Please sign in to comment.