fix fetmeeting event check and remove duplicated post at start page

This commit is contained in:
2020-09-05 16:31:10 +00:00
parent d4d23e7ca3
commit cbc21eafa5
3 changed files with 9 additions and 8 deletions

View File

@@ -240,7 +240,7 @@ class FetMeeting(Event):
def clean(self):
if self.event_start is None:
raise ValidationError(_('Das Datum des Events fehlt.'))
elif self.event_end < self.event_start:
elif (self.event_end) and (self.event_end < self.event_start):
raise ValidationError(_('Das Ende des Events liegt vor dem Beginn.'))
slug = slugify(self.event_start.date()) + "-" + slugify("Fachschaftssitzung")