mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user