Update src/pretix/control/views/checkin.py

Co-authored-by: pajowu <engelhardt@pretix.eu>
This commit is contained in:
Raphael Michel
2026-07-24 19:23:57 +02:00
committed by GitHub
co-authored by pajowu
parent 10dbaadb4c
commit 61505dc75b
+1 -1
View File
@@ -484,7 +484,7 @@ class CheckinListView(EventPermissionRequiredMixin, PaginationMixin, ListView):
def get_queryset(self):
qs = Checkin.all.filter(
list_in=self.request.event.checkin_lists.values_list('id', flat=True),
list_id__in=self.request.event.checkin_lists.values_list('id', flat=True),
).prefetch_related(
# For events with huge numbers of check-ins, prefetch_related is a lot more efficient than
# select_related, since it just needs to query one page size of positions instead of joining