summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorLeeHanYeong <dev@azelf.com>2017-10-11 20:37:31 +0900
committerTim Graham <timograham@gmail.com>2017-10-13 11:10:51 -0400
commitedd3601be6bedfcc52b3c628a444e1f878bc9adb (patch)
tree3027bb0520fe5221208803f9c45fd16d08f45643 /docs/topics
parent5d3f2aa3f12747822fb1ece95f0f614eeafa47b1 (diff)
[2.0.x] Removed incorrect reference to ModelChoiceField in Field.choices docs.
Backport of 3ffbd54566f51e4ac3d90fc6be8b3ab56fc89b75 from master
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/db/models.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
index 396be4088f..4294c05ec2 100644
--- a/docs/topics/db/models.txt
+++ b/docs/topics/db/models.txt
@@ -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