fix clean functions

This commit is contained in:
2023-06-20 08:47:29 +00:00
parent 18c114a1c5
commit db0b3b3b41

View File

@@ -319,6 +319,7 @@ class Event(Post):
super().save(*args, **kwargs)
def clean(self):
super().clean()
if not self.event_start:
raise ValidationError(_("Das Datum des Events fehlt."))
@@ -374,6 +375,7 @@ class FetMeeting(Event):
return slug
def clean(self):
super().clean()
if not self.slug:
self.slug = self.__get_slug()