Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #9506 take 2 -- Marked the message properly for transla…

…tion, in both places it appears in the source.

[9363] from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 675ee5c1373fda3b2bb4e5076b3c476308078fa6 1 parent 0776ba0
Karen Tracey authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/admin/options.py
4  django/contrib/admin/options.py
@@ -556,7 +556,7 @@ def change_view(self, request, object_id, extra_context=None):
556 556
             raise PermissionDenied
557 557
 
558 558
         if obj is None:
559  
-            raise Http404(_('%s object with primary key %r does not exist.') % (force_unicode(opts.verbose_name), escape(object_id)))
  559
+            raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)})
560 560
 
561 561
         if request.method == 'POST' and request.POST.has_key("_saveasnew"):
562 562
             return self.add_view(request, form_url='../../add/')
@@ -670,7 +670,7 @@ def delete_view(self, request, object_id, extra_context=None):
670 670
             raise PermissionDenied
671 671
 
672 672
         if obj is None:
673  
-            raise Http404('%s object with primary key %r does not exist.' % (force_unicode(opts.verbose_name), escape(object_id)))
  673
+            raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)})
674 674
 
675 675
         # Populate deleted_objects, a data structure of all related objects that
676 676
         # will also be deleted.

0 notes on commit 675ee5c

Please sign in to comment.
Something went wrong with that request. Please try again.