mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Guarantee correct grouping
This commit is contained in:
@@ -44,11 +44,11 @@ class CartMixin:
|
|||||||
else:
|
else:
|
||||||
i = pos.pk
|
i = pos.pk
|
||||||
if downloads:
|
if downloads:
|
||||||
return i, 0, 0, 0, 0
|
return i, pos.pk, 0, 0, 0, 0
|
||||||
if answers and ((pos.item.admission and self.request.event.settings.attendee_names_asked)
|
if answers and ((pos.item.admission and self.request.event.settings.attendee_names_asked)
|
||||||
or pos.item.questions.all()):
|
or pos.item.questions.all()):
|
||||||
return i, 0, 0, 0, 0
|
return i, pos.pk, 0, 0, 0, 0
|
||||||
return 0, pos.item_id, pos.variation_id, pos.price, (pos.voucher_id or 0)
|
return 0, 0, pos.item_id, pos.variation_id, pos.price, (pos.voucher_id or 0)
|
||||||
|
|
||||||
positions = []
|
positions = []
|
||||||
for k, g in groupby(sorted(list(cartpos), key=keyfunc), key=keyfunc):
|
for k, g in groupby(sorted(list(cartpos), key=keyfunc), key=keyfunc):
|
||||||
|
|||||||
Reference in New Issue
Block a user