mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Small query optimization
This commit is contained in:
@@ -191,7 +191,7 @@ class EventMixin:
|
||||
active_variations=Subquery(sq_active_variation, output_field=models.TextField()),
|
||||
).exclude(
|
||||
Q(active_items="") & Q(active_variations="")
|
||||
)
|
||||
).select_related('event', 'subevent')
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user