Kaydet (Commit) 17677d51 authored tarafından zhuanyenan's avatar zhuanyenan Kaydeden (comit) Tim Graham

Corrected docs for return type of Field.formfield().

üst 35e649b1
...@@ -1897,9 +1897,9 @@ Field API reference ...@@ -1897,9 +1897,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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment