Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 9e9a2b88e8d2f76cc85fcdad9bd463bf77181418 1 parent 5e58810
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/models.py
View
2  django/forms/models.py
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.