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.