Skip to content

Commit

Permalink
Fixed #1394 -- Fixed an admin crash when saving models with pk db col…
Browse files Browse the repository at this point in the history
…umn != pk attname.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Sep 16, 2007
1 parent 1ef4f5e commit e965618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/views/main.py
Expand Up @@ -140,7 +140,7 @@ def __init__(self, field, field_mapping, original):


def original_value(self): def original_value(self):
if self.original: if self.original:
return self.original.__dict__[self.field.column] return self.original.__dict__[self.field.attname]


def existing_display(self): def existing_display(self):
try: try:
Expand Down

0 comments on commit e965618

Please sign in to comment.