mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
no need to prefetch linked_orderpositions
This commit is contained in:
committed by
Martin Gross
parent
f758a1710d
commit
2b13fae184
@@ -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)
|
# with respecting the force option), or it's a reusable medium (-> proceed with that)
|
||||||
if not op_candidates:
|
if not op_candidates:
|
||||||
try:
|
try:
|
||||||
media = ReusableMedium.objects.prefetch_related('linked_orderpositions').active().get(
|
media = ReusableMedium.objects.active().get(
|
||||||
organizer_id=checkinlists[0].event.organizer_id,
|
organizer_id=checkinlists[0].event.organizer_id,
|
||||||
type=source_type,
|
type=source_type,
|
||||||
identifier=raw_barcode,
|
identifier=raw_barcode,
|
||||||
|
|||||||
Reference in New Issue
Block a user