Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…umn != pk attname.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e9656180eadf44fd507f89ffe02fbb628eaccca1 1 parent 1ef4f5e
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/views/main.py
View
2  django/contrib/admin/views/main.py
@@ -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):
try:
Please sign in to comment.
Something went wrong with that request. Please try again.