[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2022-09-21 09:44:15 +00:00
parent 192e529b5e
commit 4f1b9eb0e0

View file

@ -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())