From 4f1b9eb0e0c916c250269b575c5cab717174013a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 21 Sep 2022 09:44:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- categories/editor/tree_editor.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/categories/editor/tree_editor.py b/categories/editor/tree_editor.py index 870b9c4..586f248 100644 --- a/categories/editor/tree_editor.py +++ b/categories/editor/tree_editor.py @@ -276,14 +276,11 @@ class TreeEditor(admin.ModelAdmin): name = force_str(opts.verbose_name) else: name = force_str(opts.verbose_name_plural) - msg = ( - ngettext( - "%(count)s %(name)s was changed successfully.", - "%(count)s %(name)s were changed successfully.", - changecount, - ) - % {"count": changecount, "name": name, "obj": force_str(obj)} - ) + msg = ngettext( + "%(count)s %(name)s was changed successfully.", + "%(count)s %(name)s were changed successfully.", + changecount, + ) % {"count": changecount, "name": name, "obj": force_str(obj)} self.message_user(request, msg) return HttpResponseRedirect(request.get_full_path())