Skip to content

Commit

Permalink
Fixed #10038: make BaseModelFormSet.save_existing_objects use `Form…
Browse files Browse the repository at this point in the history
….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
  • Loading branch information
jacobian committed Apr 10, 2009
1 parent 5e58810 commit 9e9a2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/forms/models.py
Expand Up @@ -436,7 +436,7 @@ def save_existing_objects(self, commit=True):
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:
Expand Down

0 comments on commit 9e9a2b8

Please sign in to comment.