forked from CGM_Public/pretix_original
Voucher creation: Fix crash in validation (PRETIXEU-8GF)
This commit is contained in:
@@ -386,6 +386,7 @@ class VoucherBulkForm(VoucherForm):
|
|||||||
def clean(self):
|
def clean(self):
|
||||||
data = super().clean()
|
data = super().clean()
|
||||||
|
|
||||||
|
if 'codes' in data:
|
||||||
vouchers = self.instance.event.vouchers.annotate(
|
vouchers = self.instance.event.vouchers.annotate(
|
||||||
code_upper=Upper('code')
|
code_upper=Upper('code')
|
||||||
).filter(code_upper__in=[c.upper() for c in data['codes']])
|
).filter(code_upper__in=[c.upper() for c in data['codes']])
|
||||||
|
|||||||
Reference in New Issue
Block a user