Ticket #3258: savesubset.diff
File savesubset.diff, 540 bytes (added by , 18 years ago) |
---|
-
django/newforms/models.py
36 36 for f in opts.fields + opts.many_to_many: 37 37 if isinstance(f, models.AutoField): 38 38 continue 39 setattr(instance, f.attname, clean_data[f.name]) 39 if f.name in clean_data: 40 setattr(instance, f.attname, clean_data[f.name]) 40 41 if commit: 41 42 instance.save() 42 43 return instance