Skip to content

Commit

Permalink
Add force_str to FeaturedPostsPlugin __str__ method (nephila#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
protoroto authored Dec 22, 2023
1 parent d95802c commit f2ff618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/780.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add force_str to FeaturedPostsPlugin __str__ method
2 changes: 1 addition & 1 deletion djangocms_blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit f2ff618

Please sign in to comment.