1
0
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:
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)