Ticket #12337: forms_save_m2m_exclude.diff

File forms_save_m2m_exclude.diff, 509 bytes (added by brainrape@…, 15 years ago)

fix

  • django/forms/models.py

     
    7979        for f in opts.many_to_many:
    8080            if fields and f.name not in fields:
    8181                continue
     82            if exclude and f.name in exclude:
     83                continue
    8284            if f.name in cleaned_data:
    8385                f.save_form_data(instance, cleaned_data[f.name])
    8486    if commit:
Back to Top