[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-05 18:27:34 +00:00
parent af2115d7a0
commit ac3cd17f9e

View file

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