mirror of
https://github.com/pretix/pretix.git
synced 2026-08-12 11:07:02 +00:00
Subevent detail: Fix incorrect ticket count (Z#23238481)
This commit is contained in:
@@ -537,6 +537,7 @@ class SubEventDetail(EventPermissionRequiredMixin, DetailView):
|
||||
pcnt=Subquery(
|
||||
OrderPosition.objects.filter(
|
||||
subevent=self.object,
|
||||
order_id=OuterRef("id"),
|
||||
).values("subevent").annotate(c=Count("*")).values("c")
|
||||
),
|
||||
has_cancellation_request=Exists(CancellationRequest.objects.filter(order=OuterRef("pk"))),
|
||||
|
||||
Reference in New Issue
Block a user