Check-in list editor: Allow to delete last rule

This commit is contained in:
Raphael Michel
2021-04-21 12:56:28 +02:00
parent caa61a463e
commit 99bc133540
2 changed files with 6 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ class CheckinListForm(forms.ModelForm):
def clean(self):
d = super().clean()
CheckinList.validate_rules(d.get('rules'))
d['rules'] = CheckinList.validate_rules(d.get('rules'))
return d