mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Make voucher lookups case-insensitive
This commit is contained in:
@@ -295,7 +295,7 @@ class CartManager:
|
||||
|
||||
if i.get('voucher'):
|
||||
try:
|
||||
voucher = self.event.vouchers.get(code=i.get('voucher').strip())
|
||||
voucher = self.event.vouchers.get(code__iexact=i.get('voucher').strip())
|
||||
except Voucher.DoesNotExist:
|
||||
raise CartError(error_messages['voucher_invalid'])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user