mirror of
https://github.com/pretix/pretix.git
synced 2026-11-09 01:14:25 +00:00
Add getting subevent
This commit is contained in:
1 parent
12a00967c6
commit
8563d5bb38
1 file changed
+2
-1
@@ -267,8 +267,9 @@ class CartMixin:
|
||||
seconds_left = None
|
||||
|
||||
itemvarsums = Counter()
|
||||
subevent = getattr(self, 'subevent', None)
|
||||
for p in cartpos:
|
||||
if not self.subevent or p.subevent == self.subevent:
|
||||
if p.subevent == subevent:
|
||||
itemvarsums[p.variation or p.item] += 1
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user