Fixed ReST bugs in docs/model-api.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@481 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
aed151d3d8
commit
8dac184adc
|
@ -235,15 +235,15 @@ Field Types
|
||||||
A true/false field.
|
A true/false field.
|
||||||
|
|
||||||
``CharField``
|
``CharField``
|
||||||
A text field. These are displayed in the admin as single-line text inputs, so
|
A text field. These are displayed in the admin as single-line text inputs.
|
||||||
for large amounts of text, use a ``TextField``.
|
For large amounts of text, use ``TextField``.
|
||||||
|
|
||||||
``CharField``s have an extra required argument: ``maxlength``, the maximum
|
``CharField`` has an extra required argument: ``maxlength``, the maximum
|
||||||
length (in characters) of the field. The maxlength is enforced at the database
|
length (in characters) of the field. The maxlength is enforced at the database
|
||||||
level and in Django's admin validation.
|
level and in Django's admin validation.
|
||||||
|
|
||||||
``CommaSeparatedIntegerField``
|
``CommaSeparatedIntegerField``
|
||||||
A field of integers separated by commas. As in ``CharField``s, the
|
A field of integers separated by commas. As in ``CharField``, the
|
||||||
``maxlength`` argument is required.
|
``maxlength`` argument is required.
|
||||||
|
|
||||||
``DateField``
|
``DateField``
|
||||||
|
|
Loading…
Reference in New Issue