Skip to content

Commit

Permalink
fixup! apply wrap_iframe_in_div_tag in abstracted Publication model
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Sep 24, 2024
1 parent a0b9f75 commit 8189c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lacommunaute/utils/abstract_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 8189c62

Please sign in to comment.