From 285694955c2365f418525177baabf8955fea564b Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 8 Jul 2019 18:25:31 +0200 Subject: [PATCH] Fix AttributeError --- src/pretix/base/services/orders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/services/orders.py b/src/pretix/base/services/orders.py index 6870ba676..fbf8efa12 100644 --- a/src/pretix/base/services/orders.py +++ b/src/pretix/base/services/orders.py @@ -505,7 +505,7 @@ def _check_positions(event: Event, now_dt: datetime, positions: List[CartPositio err = err or error_messages['voucher_required'] break - if cp.item.hide_without_voucher and (cp.voucher is None or not cp.voucher.show_hidden_items or not cp.voucher.applies_to(cp.item.pk, cp.variation.pk)): + if cp.item.hide_without_voucher and (cp.voucher is None or not cp.voucher.show_hidden_items or not cp.voucher.applies_to(cp.item, cp.variation)): delete(cp) cp.delete() err = error_messages['voucher_required']