From 4968a6d995ee3f063c46cd75023926d7f6cc2922 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 23 Jul 2020 17:48:18 +0200 Subject: [PATCH] Do not count exists for checkin count --- src/pretix/base/models/checkin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/models/checkin.py b/src/pretix/base/models/checkin.py index 8df9f780c..2c573d3ae 100644 --- a/src/pretix/base/models/checkin.py +++ b/src/pretix/base/models/checkin.py @@ -93,7 +93,7 @@ class CheckinList(LoggedModel): return self.event.cache.get_or_set( 'checkin_list_{}_checkin_count'.format(self.pk), lambda: self.positions.annotate( - checkedin=Exists(Checkin.objects.filter(list_id=self.pk, position=OuterRef('pk'))) + checkedin=Exists(Checkin.objects.filter(list_id=self.pk, position=OuterRef('pk'), type=Checkin.TYPE_ENTRY,)) ).filter( checkedin=True ).count(),