mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Check-in list editor: Allow to delete last rule
This commit is contained in:
@@ -225,6 +225,11 @@ class CheckinList(LoggedModel):
|
||||
for v in values:
|
||||
cls.validate_rules(v, seen_nonbool=seen_nonbool or operator not in ('or', 'and'), depth=depth + 1)
|
||||
|
||||
if operator in ('or', 'and') and depth == 0 and not values:
|
||||
return {}
|
||||
|
||||
return rules
|
||||
|
||||
|
||||
class Checkin(models.Model):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user