Fix #553 -- Order by position first in order_overview (#554)

This commit is contained in:
Martin Gross
2017-07-14 10:22:26 +02:00
committed by Raphael Michel
parent f91d7352a4
commit 0ab6ac569e

View File

@@ -74,7 +74,7 @@ def order_overview(event: Event, subevent: SubEvent=None) -> Tuple[List[Tuple[It
'category', # for re-grouping
).prefetch_related(
'variations'
).order_by('category__position', 'category_id', 'name')
).order_by('category__position', 'category_id', 'position', 'name')
qs = OrderPosition.objects
if subevent: