Ticket #10038: has_changed.diff

File has_changed.diff, 582 bytes (added by karihre, 16 years ago)
  • django/forms/models.py

     
    407407                self.deleted_objects.append(obj)
    408408                obj.delete()
    409409            else:
    410                 if form.changed_data:
     410                if form.has_changed():
    411411                    self.changed_objects.append((obj, form.changed_data))
    412412                    saved_instances.append(self.save_existing(form, obj, commit=commit))
    413413                    if not commit:
Back to Top