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
af2115d7a0
commit
ac3cd17f9e
1 changed files with 5 additions and 8 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue