Fixed #1394 -- Fixed an admin crash when saving models with pk db column != pk attname.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-09-16 12:14:48 +00:00
parent 1ef4f5eac6
commit e9656180ea
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class AdminBoundField(object):
def original_value(self):
if self.original:
return self.original.__dict__[self.field.column]
return self.original.__dict__[self.field.attname]
def existing_display(self):
try: