Ticket #9506: 9506_1.0.1.diff

File 9506_1.0.1.diff, 714 bytes (added by Marc Fargas, 16 years ago)

Patch

  • django/contrib/admin/options.py

    diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
    index c9d9489..05f5c97 100644
    a b class ModelAdmin(BaseModelAdmin):  
    556556            raise PermissionDenied
    557557
    558558        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(_('%s object with primary key %r does not exist.') % (force_unicode(opts.verbose_name), escape(object_id)))
    560560
    561561        if request.method == 'POST' and request.POST.has_key("_saveasnew"):
    562562            return self.add_view(request, form_url='../../add/')
Back to Top