forked from CGM_Public/pretix_original
Correct english typos (#662)
* Check that vouchers selected via API are for the correct event * Choose different subject for reminder mails if auto-expiry is off * correct english typos As with PR #660, it should be checked whether the changes to the .po-files are respected in the corresponding src-files.
This commit is contained in:
committed by
Raphael Michel
parent
1285e9aa69
commit
4614d04be4
@@ -198,9 +198,13 @@ class Voucher(LoggedModel):
|
||||
@staticmethod
|
||||
def clean_item_properties(data, event, quota, item, variation):
|
||||
if quota:
|
||||
if quota.event != event:
|
||||
raise ValidationError(_('You cannot select a quota that belongs to a different event.'))
|
||||
if item:
|
||||
raise ValidationError(_('You cannot select a quota and a specific product at the same time.'))
|
||||
elif item:
|
||||
if item.event != event:
|
||||
raise ValidationError(_('You cannot select an item that belongs to a different event.'))
|
||||
if variation and (not item or not item.has_variations):
|
||||
raise ValidationError(_('You cannot select a variation without having selected a product that provides '
|
||||
'variations.'))
|
||||
|
||||
Reference in New Issue
Block a user