fix clean functions
This commit is contained in:
@@ -319,6 +319,7 @@ class Event(Post):
|
|||||||
super().save(*args, **kwargs)
|
super().save(*args, **kwargs)
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
|
super().clean()
|
||||||
if not self.event_start:
|
if not self.event_start:
|
||||||
raise ValidationError(_("Das Datum des Events fehlt."))
|
raise ValidationError(_("Das Datum des Events fehlt."))
|
||||||
|
|
||||||
@@ -374,6 +375,7 @@ class FetMeeting(Event):
|
|||||||
return slug
|
return slug
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
|
super().clean()
|
||||||
if not self.slug:
|
if not self.slug:
|
||||||
self.slug = self.__get_slug()
|
self.slug = self.__get_slug()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user