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:
parent
2ce78063fa
commit
299c3cdd8c
|
@ -1456,7 +1456,7 @@ def manipulator_save(opts, klass, add, change, self, new_data):
|
||||||
params[f.column] = f.get_manipulator_new_data(new_data)
|
params[f.column] = f.get_manipulator_new_data(new_data)
|
||||||
|
|
||||||
if change:
|
if change:
|
||||||
params[opts.pk.name] = self.obj_key
|
params[opts.pk.column] = self.obj_key
|
||||||
|
|
||||||
# First, save the basic object itself.
|
# First, save the basic object itself.
|
||||||
new_object = klass(**params)
|
new_object = klass(**params)
|
||||||
|
|
|
@ -876,7 +876,7 @@ def change_stage(request, app_label, module_name, object_id):
|
||||||
new_data.setlist(f.name, new_data[f.name].split(","))
|
new_data.setlist(f.name, new_data[f.name].split(","))
|
||||||
manipulator.do_html2python(new_data)
|
manipulator.do_html2python(new_data)
|
||||||
new_object = manipulator.save(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.
|
# Construct the change message.
|
||||||
change_message = []
|
change_message = []
|
||||||
|
|
Loading…
Reference in New Issue