Author: jacob Date: 2009-04-10 13:45:06 -0500 (Fri, 10 Apr 2009) New Revision: 10496
Modified: django/branches/releases/1.0.X/django/forms/models.py Log: [1.0.X] Fixed #10038: make `BaseModelFormSet.save_existing_objects` use `Form.has_changed()` instead of looking at `changed_data` directly. Thanks, karihre. Backport of r10495 from trunk. Modified: django/branches/releases/1.0.X/django/forms/models.py =================================================================== --- django/branches/releases/1.0.X/django/forms/models.py 2009-04-10 18:42:24 UTC (rev 10495) +++ django/branches/releases/1.0.X/django/forms/models.py 2009-04-10 18:45:06 UTC (rev 10496) @@ -419,7 +419,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 -~----------~----~----~----~------~----~------~--~---