Subevent detail: Fix incorrect ticket count (Z#23238481)

This commit is contained in:
Raphael Michel
2026-06-28 17:43:22 +02:00
parent e80d84ec3c
commit 7e077bdd7e
+1
View File
@@ -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"))),