Skip to content
Snippets Groups Projects
Commit e9ea2a45 authored by Andreas Hubel's avatar Andreas Hubel
Browse files

fix(scheduleexport): sort rooms by official_room_order

parent 1eb17529
Branches
Tags
No related merge requests found
......@@ -82,7 +82,7 @@ class ConferenceSchedule(BaseScheduleView):
Event.objects.conference_accessible(conference=self.conference)
.exclude(schedule_duration=None)
.exclude(schedule_duration__lte=timedelta(minutes=5))
.order_by(F('assembly__is_official').desc(nulls_last=True), F('room__capacity').desc(nulls_last=True), 'schedule_start')
.order_by(F('assembly__is_official').desc(nulls_last=True), 'room__official_room_order', F('room__capacity').desc(nulls_last=True), 'name')
)
if filter:
queryset = queryset.filter(**filter)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment