Fixed #10038: make `BaseModelFormSet.save_existing_objects` use `Form.has_changed()` instead of looking at `changed_data` directly. Thanks, karihre.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-04-10 18:42:24 +00:00
parent 5e58810e21
commit 9e9a2b88e8
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ class BaseModelFormSet(BaseFormSet):
self.deleted_objects.append(obj) self.deleted_objects.append(obj)
obj.delete() obj.delete()
continue continue
if form.changed_data: if form.has_changed():
self.changed_objects.append((obj, form.changed_data)) self.changed_objects.append((obj, form.changed_data))
saved_instances.append(self.save_existing(form, obj, commit=commit)) saved_instances.append(self.save_existing(form, obj, commit=commit))
if not commit: if not commit: