mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fix statistics view (PRETIXEU-AB5)
This commit is contained in:
@@ -468,7 +468,7 @@ class EventMixin:
|
|||||||
return best_state_found, num_tickets_found, num_tickets_possible
|
return best_state_found, num_tickets_found, num_tickets_possible
|
||||||
|
|
||||||
def free_seats(self, ignore_voucher=None, sales_channel='web', include_blocked=False):
|
def free_seats(self, ignore_voucher=None, sales_channel='web', include_blocked=False):
|
||||||
assert isinstance(sales_channel, str)
|
assert isinstance(sales_channel, str) or sales_channel is None
|
||||||
qs_annotated = self._seats(ignore_voucher=ignore_voucher)
|
qs_annotated = self._seats(ignore_voucher=ignore_voucher)
|
||||||
|
|
||||||
qs = qs_annotated.filter(has_order=False, has_cart=False, has_voucher=False)
|
qs = qs_annotated.filter(has_order=False, has_cart=False, has_voucher=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user