From ef48093f202b1931581d324d134d427b1a99a187 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 9 Aug 2016 18:38:32 +0200 Subject: [PATCH] sort by event type first, then time --- program/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/views.py b/program/views.py index 47e8b93f..01d71dc7 100644 --- a/program/views.py +++ b/program/views.py @@ -65,7 +65,7 @@ class ProgramDayView(TemplateView): date = datetime.date(year=year, month=month, day=day) day = Day.objects.filter(date=date) context['date'] = date - context['events'] = models.Event.objects.filter(days=day).order_by('start', 'event_type') + context['events'] = models.Event.objects.filter(days=day).order_by('event_type', 'start') context['event_types'] = models.EventType.objects.all() context['days'] = Day.objects.filter(date__year=year) return context