mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +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(
|
).annotate(
|
||||||
var_count=Count('variations')
|
var_count=Count('variations')
|
||||||
).prefetch_related("category").order_by(
|
).prefetch_related("category").order_by(
|
||||||
F('category__position').desc(nulls_first=True),
|
F('category__position').asc(nulls_first=True),
|
||||||
'category', 'position'
|
'category', 'position'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user