mirror of
https://github.com/pretix/pretix.git
synced 2026-02-04 02:22:28 +00:00
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