diff --git a/fet2020/posts/models.py b/fet2020/posts/models.py index 1fe7c87e..bd168e43 100644 --- a/fet2020/posts/models.py +++ b/fet2020/posts/models.py @@ -147,16 +147,11 @@ class Post(models.Model): if (self.id is None) and (not self.slug): self.slug = slugify(self.public_date.date()) + "-" + slugify(self.title) - - if self.has_agenda: # and (self.agenda_key == "" or self.agenda_key is None): - self.agenda_key = ep.createPadifNotExists(self.slug + "agenda") - - + if self.has_agenda: + self.agenda_key = ep.createPadifNotExists(self.slug + "-agenda") if self.has_protocol: - self.protocol_key = ep.createPadifNotExists(self.slug+"protocol") - - + self.protocol_key = ep.createPadifNotExists(self.slug + "-protocol") super().save(*args, **kwargs)