Shorter and more useful global dashboard

This commit is contained in:
Raphael Michel
2018-01-15 11:32:30 +01:00
parent 6b7338aff0
commit 96247d5fa0
4 changed files with 167 additions and 68 deletions

View File

@@ -42,7 +42,7 @@ class EventList(PaginationMixin, ListView):
max_fromto=Greatest(Max('subevents__date_to'), Max('subevents__date_from'))
).annotate(
order_from=Coalesce('min_from', 'date_from'),
order_to=Coalesce('max_fromto', 'max_to', 'max_from', 'date_to'),
order_to=Coalesce('max_fromto', 'max_to', 'max_from', 'date_to', 'date_from'),
)
sum_tickets_paid = Quota.objects.filter(