Ticket #4553: save_instance-patch.patch
File save_instance-patch.patch, 508 bytes (added by , 17 years ago) |
---|
-
models.py
33 33 continue 34 34 if fields and f.name not in fields: 35 35 continue 36 setattr(instance, f.name, cleaned_data[f.name]) 36 attname = opts.get_field( f.name ).get_attname() 37 setattr(instance, attname, cleaned_data[f.name] ) 37 38 if commit: 38 39 instance.save() 39 40 for f in opts.many_to_many: