diff options
| author | Tobias Kunze <r@rixx.de> | 2019-06-20 14:26:08 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-06-20 15:13:22 +0200 |
| commit | a387ef11171dc24ee6dbbcff7e76997677ad10dc (patch) | |
| tree | 613538d53d61705e621667a2326f78ca2a564b8b | |
| parent | 9aeac299490212c86952857f321812ae9df943da (diff) | |
Added missing form argument in modelform_factory() docstring.
| -rw-r--r-- | django/forms/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 3ad8cea9b6..47df5d565a 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -476,7 +476,9 @@ def modelform_factory(model, form=ModelForm, fields=None, exclude=None, labels=None, help_texts=None, error_messages=None, field_classes=None): """ - Return a ModelForm containing form fields for the given model. + Return a ModelForm containing form fields for the given model. You can + optionally pass a `form` argument to use as a starting point for + constructing the ModelForm. ``fields`` is an optional list of field names. If provided, include only the named fields in the returned fields. If omitted or '__all__', use all |
