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:
parent
5e58810e21
commit
9e9a2b88e8
|
@ -436,7 +436,7 @@ class BaseModelFormSet(BaseFormSet):
|
|||
self.deleted_objects.append(obj)
|
||||
obj.delete()
|
||||
continue
|
||||
if form.changed_data:
|
||||
if form.has_changed():
|
||||
self.changed_objects.append((obj, form.changed_data))
|
||||
saved_instances.append(self.save_existing(form, obj, commit=commit))
|
||||
if not commit:
|
||||
|
|
Loading…
Reference in New Issue