diff --git a/lacommunaute/utils/abstract_models.py b/lacommunaute/utils/abstract_models.py index 91c2422d0..d944d1bf4 100644 --- a/lacommunaute/utils/abstract_models.py +++ b/lacommunaute/utils/abstract_models.py @@ -41,5 +41,6 @@ def __str__(self): def save(self, *args, **kwargs): self.slug = slugify(force_str(self.name), allow_unicode=True) - self.description.raw = wrap_iframe_in_div_tag(self.description.raw) + if self.description: + self.description.raw = wrap_iframe_in_div_tag(self.description.raw) super().save(*args, **kwargs)