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

Co-authored-by: pajowu <engelhardt@pretix.eu>
This commit is contained in:
Raphael Michel
2026-07-27 13:54:06 +02:00
committed by pajowu
co-authored by pajowu
parent 1087db9529
commit 9afc71c245
+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