Fixed: SplitDateTime Widgets always complains about the date/time format.
This commit is contained in:
@@ -112,7 +112,7 @@ class Event(models.Model):
|
||||
return "New Event Model"
|
||||
|
||||
def clean(self):
|
||||
if self.end < self.start:
|
||||
if self.end and self.end < self.start:
|
||||
raise ValidationError({
|
||||
'end': _("A event can't end before it had started")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user