Author: jacob
Date: 2009-04-10 13:42:24 -0500 (Fri, 10 Apr 2009)
New Revision: 10495

Modified:
   django/trunk/django/forms/models.py
Log:
Fixed #10038: make `BaseModelFormSet.save_existing_objects` use 
`Form.has_changed()` instead of looking at `changed_data` directly. Thanks, 
karihre.

Modified: django/trunk/django/forms/models.py
===================================================================
--- django/trunk/django/forms/models.py 2009-04-10 18:32:17 UTC (rev 10494)
+++ django/trunk/django/forms/models.py 2009-04-10 18:42:24 UTC (rev 10495)
@@ -436,7 +436,7 @@
                     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:


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to