Ticket #10284: modelformset_false_delete.diff
File modelformset_false_delete.diff, 624 bytes (added by , 14 years ago) |
---|
-
django/forms/models.py
601 601 should_delete = form.fields[DELETION_FIELD_NAME].clean(raw_delete_value) 602 602 if should_delete: 603 603 self.deleted_objects.append(obj) 604 obj.delete() 604 if commit: 605 obj.delete() 605 606 continue 606 607 if form.has_changed(): 607 608 self.changed_objects.append((obj, form.changed_data))