mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Clarify cart order (#2844)
This commit is contained in:
@@ -497,9 +497,9 @@ class AddOnsStep(CartMixin, AsyncAction, TemplateFlowStep):
|
||||
formset = []
|
||||
quota_cache = {}
|
||||
item_cache = {}
|
||||
for cartpos in get_cart(self.request).filter(addon_to__isnull=True).prefetch_related(
|
||||
for cartpos in sorted(get_cart(self.request).filter(addon_to__isnull=True).prefetch_related(
|
||||
'item__addons', 'item__addons__addon_category', 'addons', 'addons__variation',
|
||||
).order_by('pk'):
|
||||
), key=lambda c: c.sort_key):
|
||||
formsetentry = {
|
||||
'pos': cartpos,
|
||||
'item': cartpos.item,
|
||||
|
||||
Reference in New Issue
Block a user