From 2b13fae1840f3cbfbfb9fd4670240e52757da1f2 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Mon, 15 Dec 2025 10:31:12 +0100 Subject: [PATCH] no need to prefetch linked_orderpositions --- src/pretix/api/views/checkin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/api/views/checkin.py b/src/pretix/api/views/checkin.py index 16d4f83bcc..15eb0af5cb 100644 --- a/src/pretix/api/views/checkin.py +++ b/src/pretix/api/views/checkin.py @@ -520,7 +520,7 @@ def _redeem_process(*, checkinlists, raw_barcode, answers_data, datetime, force, # with respecting the force option), or it's a reusable medium (-> proceed with that) if not op_candidates: try: - media = ReusableMedium.objects.prefetch_related('linked_orderpositions').active().get( + media = ReusableMedium.objects.active().get( organizer_id=checkinlists[0].event.organizer_id, type=source_type, identifier=raw_barcode,