From ac3cd17f9e70de3b2ef56bd1dc54bf98c1200eb9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Sep 2022 18:27:34 +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 d528c95..6cfa9fb 100644 --- a/categories/editor/tree_editor.py +++ b/categories/editor/tree_editor.py @@ -259,14 +259,11 @@ class TreeEditor(admin.ModelAdmin): 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())