diff --git a/django/forms/models.py b/django/forms/models.py
index cd8f027..02c09d2 100644
a
|
b
|
def save_instance(form, instance, fields=None, fail_message='saved',
|
79 | 79 | for f in opts.many_to_many: |
80 | 80 | if fields and f.name not in fields: |
81 | 81 | continue |
| 82 | if exclude and f.name in exclude: |
| 83 | continue |
82 | 84 | if f.name in cleaned_data: |
83 | 85 | f.save_form_data(instance, cleaned_data[f.name]) |
84 | 86 | if commit: |
… |
… |
class BaseModelForm(BaseForm):
|
361 | 363 | else: |
362 | 364 | fail_message = 'changed' |
363 | 365 | return save_instance(self, self.instance, self._meta.fields, |
364 | | fail_message, commit, construct=False) |
| 366 | fail_message, commit, self._meta.exclude, |
| 367 | False) |
365 | 368 | |
366 | 369 | save.alters_data = True |
367 | 370 | |