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:
parent
1ef4f5eac6
commit
e9656180ea
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue