mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Don't mention subevents in user-facing strings
This commit is contained in:
@@ -770,7 +770,7 @@ class EventCancelForm(forms.Form):
|
|||||||
if d.get('subevent') and d.get('subevents_from'):
|
if d.get('subevent') and d.get('subevents_from'):
|
||||||
raise ValidationError(pgettext_lazy('subevent', 'Please either select a specific date or a date range, not both.'))
|
raise ValidationError(pgettext_lazy('subevent', 'Please either select a specific date or a date range, not both.'))
|
||||||
if d.get('all_subevents') and d.get('subevent_from'):
|
if d.get('all_subevents') and d.get('subevent_from'):
|
||||||
raise ValidationError(pgettext_lazy('subevent', 'Please either select all subevents or a date range, not both.'))
|
raise ValidationError(pgettext_lazy('subevent', 'Please either select all dates or a date range, not both.'))
|
||||||
if bool(d.get('subevents_from')) != bool(d.get('subevents_to')):
|
if bool(d.get('subevents_from')) != bool(d.get('subevents_to')):
|
||||||
raise ValidationError(pgettext_lazy('subevent', 'If you set a date range, please set both a start and an end.'))
|
raise ValidationError(pgettext_lazy('subevent', 'If you set a date range, please set both a start and an end.'))
|
||||||
if self.event.has_subevents and not d['subevent'] and not d['all_subevents'] and not d.get('subevents_from'):
|
if self.event.has_subevents and not d['subevent'] and not d['all_subevents'] and not d.get('subevents_from'):
|
||||||
|
|||||||
Reference in New Issue
Block a user