Skip to content
Browse files

Fixed #1394 -- Fixed an admin crash when saving models with pk db col…

…umn != pk attname.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 1ef4f5e commit e9656180eadf44fd507f89ffe02fbb628eaccca1 @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/views/
2 django/contrib/admin/views/
@@ -140,7 +140,7 @@ def __init__(self, field, field_mapping, original):
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):

0 comments on commit e965618

Please sign in to comment.
Something went wrong with that request. Please try again.