Skip to content
Snippets Groups Projects
Commit bfcf5f25 authored by Parbhat Puri's avatar Parbhat Puri Committed by Fredrik Jonsson
Browse files

fix UnorderedObjectListWarning

parent f338c51e
No related branches found
No related tags found
No related merge requests found
...@@ -257,7 +257,8 @@ class OpenCallIndexPage(BasePage): ...@@ -257,7 +257,8 @@ class OpenCallIndexPage(BasePage):
def get_context(self, request, *args, **kwargs): def get_context(self, request, *args, **kwargs):
context = super().get_context(request, *args, **kwargs) context = super().get_context(request, *args, **kwargs)
open_call_submissions = ApplicationSubmission.objects.filter(status__in=OPEN_CALL_PHASES).select_related('page') open_call_submissions = ApplicationSubmission.objects.filter(
status__in=OPEN_CALL_PHASES).select_related('page').order_by('-submit_time')
per_page = settings.DEFAULT_PER_PAGE per_page = settings.DEFAULT_PER_PAGE
page_number = request.GET.get('page') page_number = request.GET.get('page')
paginator = Paginator(open_call_submissions, per_page) paginator = Paginator(open_call_submissions, per_page)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment