From f2ff61817c7de95ab7f45ee63db6ec7c195ac65d Mon Sep 17 00:00:00 2001 From: Leonardo Cavallucci Date: Fri, 22 Dec 2023 14:27:03 +0100 Subject: [PATCH] Add force_str to FeaturedPostsPlugin __str__ method (#782) --- changes/780.bugfix | 1 + djangocms_blog/models.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/780.bugfix diff --git a/changes/780.bugfix b/changes/780.bugfix new file mode 100644 index 00000000..d7bfacfd --- /dev/null +++ b/changes/780.bugfix @@ -0,0 +1 @@ +Add force_str to FeaturedPostsPlugin __str__ method diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index 52cac208..66a39c0c 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -605,7 +605,7 @@ class FeaturedPostsPlugin(BasePostPlugin): posts = SortedManyToManyField(Post, verbose_name=_("Featured posts")) def __str__(self): - return _("Featured posts") + return force_str(_("Featured posts")) def copy_relations(self, oldinstance): self.posts.set(oldinstance.posts.all())