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:
Malcolm Tredinnick 2009-03-24 08:22:23 +00:00
parent 37f25d4c0c
commit 2dfdc2b01b
1 changed files with 13 additions and 13 deletions

View File

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