Skip to content

Commit

Permalink
Fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Jul 26, 2023
1 parent 8a2394f commit 50f8fc9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion applications/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ def application_detail(request, page_url, app_number):
Display the details of a single application.
"""
application = (
Application.object.filter(number=app_number).filter(form__event__page_url=page_url).order_by("-created").first()
Application.objects.filter(number=app_number)
.filter(form__event__page_url=page_url)
.order_by("-created")
.first()
)
try:
score = Score.objects.get(user=request.user, application=application)
Expand Down

0 comments on commit 50f8fc9

Please sign in to comment.