set slug if missing
This commit is contained in:
@@ -219,14 +219,6 @@ class Event(Post):
|
||||
verbose_name = "Event"
|
||||
verbose_name_plural = "Events"
|
||||
|
||||
@property
|
||||
def event_start_month(self):
|
||||
return self.event_start.strftime("%b")
|
||||
|
||||
@property
|
||||
def event_start_day(self):
|
||||
return self.event_start.strftime("%d")
|
||||
|
||||
def clean(self):
|
||||
if self.event_end is None or self.event_start is None:
|
||||
raise ValidationError(_('Das Datum des Events fehlt.'))
|
||||
|
||||
Reference in New Issue
Block a user