Skip to content
Snippets Groups Projects
Commit e00f7fa5 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Order unscheduled slots by their AK and not their pk

As a result, multiple unscheduled slots of the same AK are now grouped even when they were added at different times
This implements #233
parent 761e3fb3
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ class SchedulingAdminView(AdminViewMixin, FilterByEventSlugMixin, ListView):
context_object_name = "slots_unscheduled"
def get_queryset(self):
return super().get_queryset().filter(start__isnull=True).select_related('event', 'ak').order_by('ak__track')
return super().get_queryset().filter(start__isnull=True).select_related('event', 'ak').order_by('ak__track', 'ak')
def get_context_data(self, *, object_list=None, **kwargs):
context = super().get_context_data(object_list=object_list, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment