Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 5, 2022
1 parent af2115d commit ac3cd17
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions categories/editor/tree_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,11 @@ def old_changelist_view(self, request, extra_context=None):
name = force_text(opts.verbose_name)
else:
name = force_text(opts.verbose_name_plural)
msg = (
ungettext(
"%(count)s %(name)s was changed successfully.",
"%(count)s %(name)s were changed successfully.",
changecount,
)
% {"count": changecount, "name": name, "obj": force_text(obj)}
)
msg = ungettext(
"%(count)s %(name)s was changed successfully.",
"%(count)s %(name)s were changed successfully.",
changecount,
) % {"count": changecount, "name": name, "obj": force_text(obj)}
self.message_user(request, msg)

return HttpResponseRedirect(request.get_full_path())
Expand Down

0 comments on commit ac3cd17

Please sign in to comment.