Commit c895cd49 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '807-automatic-pizza-save-fix' into 'master'

Automatic pizza save fix

Closes #807

See merge request !1130
parents d980ceff 538abe15
......@@ -81,6 +81,8 @@ class PizzaEvent(models.Model):
})
def clean(self):
super().clean()
if self.start >= self.end:
raise ValidationError({
'start': _('The start is after the end of this event.'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment