summaryrefslogtreecommitdiff
path: root/django/views
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-08-29 16:49:18 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-08-29 16:49:18 +0000
commit299c3cdd8c5c83a2936cf84dc9d6745db9b39454 (patch)
tree463666e288180e18bb1ef93f4d22aa772aef202a /django/views
parent2ce78063fa07ee3ebbae6eb5c00cc251b89da66f (diff)
Fixed small bug in manipulator handling of one-to-one-related foreign keys
git-svn-id: http://code.djangoproject.com/svn/django/trunk@572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views')
-rw-r--r--django/views/admin/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/admin/main.py b/django/views/admin/main.py
index 738dd15cea..17bfa12d8b 100644
--- a/django/views/admin/main.py
+++ b/django/views/admin/main.py
@@ -876,7 +876,7 @@ def change_stage(request, app_label, module_name, object_id):
new_data.setlist(f.name, new_data[f.name].split(","))
manipulator.do_html2python(new_data)
new_object = manipulator.save(new_data)
- pk_value = getattr(new_object, opts.pk.name)
+ pk_value = getattr(new_object, opts.pk.column)
# Construct the change message.
change_message = []