1
0
mirror of https://github.com/django/django.git synced 2025-05-22 06:46:27 +00:00

Corrected a run on sentence in doc/topics/db/models.txt.

This commit is contained in:
Tim Graham 2016-02-25 14:22:41 -05:00
parent 4b1529e2cb
commit 22d2a5b00a

View File

@ -170,10 +170,10 @@ ones:
) )
The first element in each tuple is the value that will be stored in the 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 database. The second element will be displayed by the default form widget
or in a ModelChoiceField. Given an instance of a model object, the or in a :class:`~django.forms.ModelChoiceField`. Given a model instance,
display value for a choices field can be accessed using the the display value for a choices field can be accessed using the
``get_FOO_display`` method. For example:: ``get_FOO_display()`` method. For example::
from django.db import models from django.db import models