Django

Code

Changeset 4427

Show
Ignore:
Timestamp:
01/24/07 22:20:49 (2 years ago)
Author:
adrian
Message:

newforms-admin: Fixed bug in 404 message in admin change_view()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin/django/contrib/admin/options.py

    r4417 r4427  
    341341            obj = model._default_manager.get(pk=object_id) 
    342342        except model.DoesNotExist: 
    343             raise Http404('%s object with primary key %r does not exist' % (model_name, escape(object_id))) 
     343            raise Http404('%s object with primary key %r does not exist.' % (opts.verbose_name, escape(object_id))) 
    344344 
    345345        ModelForm = forms.form_for_instance(obj, formfield_callback=self.formfield_for_dbfield)