diff options
| author | LeeHanYeong <dev@azelf.com> | 2017-10-11 20:37:31 +0900 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-13 10:37:04 -0400 |
| commit | 3ffbd54566f51e4ac3d90fc6be8b3ab56fc89b75 (patch) | |
| tree | d0a18ec494ba8737ce20866db45b604a19f0f9aa | |
| parent | 941b0a5b334e043b5fb5ea694d60da0128a8a3b8 (diff) | |
Removed incorrect reference to ModelChoiceField in Field.choices docs.
| -rw-r--r-- | docs/topics/db/models.txt | 9 |
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 |
