forked from CGM_Public/pretix_original
This commit is contained in:
committed by
GitHub
parent
8121167d5e
commit
01d9574ddf
@@ -102,7 +102,8 @@ class ItemList(ListView):
|
|||||||
).annotate(
|
).annotate(
|
||||||
var_count=Count('variations')
|
var_count=Count('variations')
|
||||||
).prefetch_related("category").order_by(
|
).prefetch_related("category").order_by(
|
||||||
'category__position', 'category', 'position'
|
F('category__position').desc(nulls_first=True),
|
||||||
|
'category', 'position'
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user