From b8cdf33ac798f580f4cbad2297f5773f1409d6bb 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 11de4b123d..6e464a9f4b 100644 --- a/src/pretix/api/views/checkin.py +++ b/src/pretix/api/views/checkin.py @@ -521,7 +521,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,