Skip to content

Commit

Permalink
Fix #43 🐛 missed object numbers in msg's
Browse files Browse the repository at this point in the history
  • Loading branch information
lissa3 committed Aug 25, 2023
1 parent c2da993 commit 09551bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/posts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ class PostAdmin(TranslationAdmin):
def make_posts_published(self, request, queryset):
"""make possbile to mark posts as published in admin bar checkbox"""
updated = queryset.update(status=2)

self.message_user(
request,
ngettext(
"%d successfully marked as published.",
"%d post successfully marked as published.",
"%d posts were successfully marked as published.",
updated,
)
% updated,
Expand Down

0 comments on commit 09551bc

Please sign in to comment.