From dcf00c8772ae5c1009056fc43ab7894d75204a2f Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 21 May 2021 18:22:40 +0200 Subject: [PATCH] Sub-event bulk creation: Do not allow "every 0 weeks" --- src/pretix/control/forms/subevents.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pretix/control/forms/subevents.py b/src/pretix/control/forms/subevents.py index 7af7fa5490..c38bab66dc 100644 --- a/src/pretix/control/forms/subevents.py +++ b/src/pretix/control/forms/subevents.py @@ -457,7 +457,9 @@ class RRuleForm(forms.Form): ) interval = forms.IntegerField( label=_('Interval'), - initial=1 + initial=1, + min_value=1, + widget=forms.NumberInput(attrs={'min': '1'}) ) dtstart = forms.DateField( label=_('Start date'),