mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
192e529b5e
commit
4f1b9eb0e0
1 changed files with 5 additions and 8 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue