diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-01-25 04:20:49 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-01-25 04:20:49 +0000 |
| commit | 12ad69dbaafa0f3cac89c0703b97dd15fc27f5ef (patch) | |
| tree | 63bdac2ebc5990c51e8363026ded46a52df0ec93 | |
| parent | 75a3617d7941ca9484bccab09221dcc51762701a (diff) | |
newforms-admin: Fixed bug in 404 message in admin change_view()
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/admin/options.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index aceb7625fb..e681e23440 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -340,7 +340,7 @@ class ModelAdmin(object): try: obj = model._default_manager.get(pk=object_id) except model.DoesNotExist: - raise Http404('%s object with primary key %r does not exist' % (model_name, escape(object_id))) + raise Http404('%s object with primary key %r does not exist.' % (opts.verbose_name, escape(object_id))) ModelForm = forms.form_for_instance(obj, formfield_callback=self.formfield_for_dbfield) |
