Removed incorrect reference to ModelChoiceField in Field.choices docs.

This commit is contained in:
LeeHanYeong 2017-10-11 20:37:31 +09:00 committed by Tim Graham
parent 941b0a5b33
commit 3ffbd54566
1 changed files with 5 additions and 4 deletions

View File

@ -170,10 +170,11 @@ ones:
)
The first element in each tuple is the value that will be stored in the
database. The second element will be displayed by the default form widget
or in a :class:`~django.forms.ModelChoiceField`. Given a model instance,
the display value for a choices field can be accessed using the
``get_FOO_display()`` method. For example::
database. The second element is displayed by the field's form widget.
Given a model instance, the display value for a field with ``choices`` can
be accessed using the :meth:`~django.db.models.Model.get_FOO_display`
method. For example::
from django.db import models