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
This commit is contained in:
Adrian Holovaty 2005-08-29 16:49:18 +00:00
parent 2ce78063fa
commit 299c3cdd8c
2 changed files with 2 additions and 2 deletions

View File

@ -1456,7 +1456,7 @@ def manipulator_save(opts, klass, add, change, self, new_data):
params[f.column] = f.get_manipulator_new_data(new_data)
if change:
params[opts.pk.name] = self.obj_key
params[opts.pk.column] = self.obj_key
# First, save the basic object itself.
new_object = klass(**params)

View File

@ -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 = []