From fc0e0c7566ef21e04865c6424eb788b7c6b750c9 Mon Sep 17 00:00:00 2001 From: Frantisek Holop Date: Wed, 21 Oct 2020 10:09:54 +0200 Subject: [PATCH] fix hanging indent --- django_comments/admin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django_comments/admin.py b/django_comments/admin.py index dc9e75f..ff55db6 100644 --- a/django_comments/admin.py +++ b/django_comments/admin.py @@ -81,10 +81,11 @@ def _bulk_flag(self, request, queryset, action, done_message): n_comments += 1 msg = ngettext('%(count)s comment was successfully %(action)s.', - '%(count)s comments were successfully %(action)s.', - n_comments) + '%(count)s comments were successfully %(action)s.', + n_comments) self.message_user(request, msg % {'count': n_comments, 'action': done_message(n_comments)}) + # Only register the default admin if the model is the built-in comment model # (this won't be true if there's a custom comment app). Klass = get_model()