1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

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
This commit is contained in:
Adrian Holovaty 2007-01-25 04:20:49 +00:00
parent 75a3617d79
commit 12ad69dbaa

View File

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