From 3235f0298ae1c92f625c76922e66b9a0ad5aa3b1 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 17 Dec 2005 19:32:15 +0000 Subject: [PATCH] Fixed #1075 -- Fixed bug in edit_inline. Thanks, Eric Moritz git-svn-id: http://code.djangoproject.com/svn/django/trunk@1717 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/meta/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/core/meta/__init__.py b/django/core/meta/__init__.py index 049b39e2b6..2b187d542e 100644 --- a/django/core/meta/__init__.py +++ b/django/core/meta/__init__.py @@ -1809,11 +1809,12 @@ def manipulator_save(opts, klass, add, change, self, new_data): if child_follow: obj_list = expanded_data[related.var_name].items() obj_list.sort(lambda x, y: cmp(int(x[0]), int(y[0]))) - params = {} # For each related item... for _, rel_new_data in obj_list: + params = {} + # Keep track of which core=True fields were provided. # If all core fields were given, the related object will be saved. # If none of the core fields were given, the object will be deleted.