mirror of
https://github.com/pretix/pretix.git
synced 2026-08-04 09:47:50 +00:00
Update src/pretix/control/views/checkin.py
Co-authored-by: pajowu <engelhardt@pretix.eu>
This commit is contained in:
committed by
pajowu
co-authored by
pajowu
parent
1087db9529
commit
9afc71c245
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user