mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
[1.10.x] Corrected docs for return type of Field.formfield().
Backport of 17677d510f from master
This commit is contained in:
@@ -1909,9 +1909,9 @@ Field API reference
|
|||||||
:class:`~django.forms.ModelForm`.
|
:class:`~django.forms.ModelForm`.
|
||||||
|
|
||||||
By default, if both ``form_class`` and ``choices_form_class`` are
|
By default, if both ``form_class`` and ``choices_form_class`` are
|
||||||
``None``, it uses :class:`~django.forms.CharField`; if
|
``None``, it uses :class:`~django.forms.CharField`. If the field has
|
||||||
``choices_form_class`` is given, it returns
|
:attr:`~django.db.models.Field.choices` and ``choices_form_class``
|
||||||
:class:`~django.forms.TypedChoiceField`.
|
isn't specified, it uses :class:`~django.forms.TypedChoiceField`.
|
||||||
|
|
||||||
See :ref:`specifying-form-field-for-model-field` for usage.
|
See :ref:`specifying-form-field-for-model-field` for usage.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user