Fixed #10600 -- Allow for format marker reordering in a translatable string.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
37f25d4c0c
commit
2dfdc2b01b
|
@ -495,9 +495,9 @@ class ModelAdmin(BaseModelAdmin):
|
||||||
obj_display = force_unicode(obj)
|
obj_display = force_unicode(obj)
|
||||||
self.log_deletion(request, obj, obj_display)
|
self.log_deletion(request, obj, obj_display)
|
||||||
queryset.delete()
|
queryset.delete()
|
||||||
self.message_user(request, _("Successfully deleted %d %s.") % (
|
self.message_user(request, _("Successfully deleted %(count)d %(items)s.") % {
|
||||||
n, model_ngettext(self.opts, n)
|
"count": n, "items": model_ngettext(self.opts, n)
|
||||||
))
|
})
|
||||||
# Return None to display the change list page again.
|
# Return None to display the change list page again.
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue