From 9e9a2b88e8d2f76cc85fcdad9bd463bf77181418 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Fri, 10 Apr 2009 18:42:24 +0000 Subject: [PATCH] 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 --- django/forms/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/forms/models.py b/django/forms/models.py index 7ca1ab5f73..8d55e4459e 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -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: