mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Fix AttributeError
This commit is contained in:
@@ -505,7 +505,7 @@ def _check_positions(event: Event, now_dt: datetime, positions: List[CartPositio
|
|||||||
err = err or error_messages['voucher_required']
|
err = err or error_messages['voucher_required']
|
||||||
break
|
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)
|
delete(cp)
|
||||||
cp.delete()
|
cp.delete()
|
||||||
err = error_messages['voucher_required']
|
err = error_messages['voucher_required']
|
||||||
|
|||||||
Reference in New Issue
Block a user