Skip to content

Commit

Permalink
Merge pull request #899 from anaschwendler/890-application-multiple-o…
Browse files Browse the repository at this point in the history
…bjects-returned

Make sure application return only one objecte
  • Loading branch information
amakarudze authored Jul 11, 2023
2 parents 45ce519 + ed4b4e7 commit b0ff350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def application_detail(request, page_url, app_number):
"""
Display the details of a single application.
"""
application = get_object_or_404(Application, form__event__page_url=page_url, number=app_number)
application = Application.object.filter(number=app_number).order_by("-created").first()
try:
score = Score.objects.get(user=request.user, application=application)
except Score.DoesNotExist:
Expand Down

0 comments on commit b0ff350

Please sign in to comment.