mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Add-on step: Minimal performance improvement
This commit is contained in:
@@ -263,6 +263,8 @@ def get_grouped_items(event, *, channel: SalesChannel, subevent=None, voucher=No
|
|||||||
|
|
||||||
quotas_to_compute = []
|
quotas_to_compute = []
|
||||||
for item in items:
|
for item in items:
|
||||||
|
assert item.event_id == event.pk
|
||||||
|
item.event = event # save a database query if this is looked up
|
||||||
if item.has_variations:
|
if item.has_variations:
|
||||||
for v in item.available_variations:
|
for v in item.available_variations:
|
||||||
for q in v._subevent_quotas:
|
for q in v._subevent_quotas:
|
||||||
|
|||||||
Reference in New Issue
Block a user