diff --git a/django/forms/models.py b/django/forms/models.py
index 0039516..f440cf6 100644
|
a
|
b
|
class BaseModelForm(BaseForm):
|
| 274 | 274 | field = f.name |
| 275 | 275 | # Exclude fields that aren't on the form. The developer may be |
| 276 | 276 | # adding these values to the model after form validation. |
| 277 | | if field not in self.fields: |
| | 277 | if self._meta.fields and field not in self._meta.fields: |
| 278 | 278 | exclude.append(f.name) |
| 279 | 279 | # Exclude fields that failed form validation. There's no need for |
| 280 | 280 | # the model fields to validate them as well. |