mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Voucher import: Fix quota name check
This commit is contained in:
@@ -251,7 +251,7 @@ class QuotaColumn(ImportColumn):
|
||||
raise ValidationError(_("You cannot specify a quota if you specified a product."))
|
||||
matches = [
|
||||
q for q in self.quotas
|
||||
if str(q.pk) == value or any((v and v == value) for v in i18n_flat(q.name))
|
||||
if str(q.pk) == value or q.name == value
|
||||
]
|
||||
if len(matches) == 0:
|
||||
raise ValidationError(_("No matching variation was found."))
|
||||
|
||||
Reference in New Issue
Block a user