diff --git a/applications/views.py b/applications/views.py index 2ca0787c3..8a57d1bb4 100644 --- a/applications/views.py +++ b/applications/views.py @@ -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)