Code

Ticket #3388: quick-fix.patch

File quick-fix.patch, 499 bytes (added by anton@…, 7 years ago)

quick fix

  • django/newforms/models.py

     
    3333    for f in opts.fields: 
    3434        if isinstance(f, models.AutoField): 
    3535            continue 
    36         setattr(instance, f.attname, clean_data[f.name]) 
     36        setattr(instance, f.name, clean_data[f.name]) 
    3737    if commit: 
    3838        instance.save() 
    3939        for f in opts.many_to_many: