forked from CGM_Public/pretix_original
ItemList: Order items by category the same way as in presale and CategoryList
This commit is contained in:
@@ -102,7 +102,7 @@ class ItemList(ListView):
|
||||
).annotate(
|
||||
var_count=Count('variations')
|
||||
).prefetch_related("category").order_by(
|
||||
F('category__position').desc(nulls_first=True),
|
||||
F('category__position').asc(nulls_first=True),
|
||||
'category', 'position'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user