fix fetmeeting event check and remove duplicated post at start page
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user