[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) name = force_text(opts.verbose_name)
else: else:
name = force_text(opts.verbose_name_plural) name = force_text(opts.verbose_name_plural)
msg = ( msg = ungettext(
ungettext( "%(count)s %(name)s was changed successfully.",
"%(count)s %(name)s was changed successfully.", "%(count)s %(name)s were changed successfully.",
"%(count)s %(name)s were changed successfully.", changecount,
changecount, ) % {"count": changecount, "name": name, "obj": force_text(obj)}
)
% {"count": changecount, "name": name, "obj": force_text(obj)}
)
self.message_user(request, msg) self.message_user(request, msg)
return HttpResponseRedirect(request.get_full_path()) return HttpResponseRedirect(request.get_full_path())