mirror of https://github.com/django/django.git
[3.1.x] Fixed typo and indentation in docs/ref/forms/fields.txt.
Backport of 10a289745f
from master
This commit is contained in:
parent
562a4824d7
commit
d05a1f5792
|
@ -373,13 +373,13 @@ For each field, we describe the default widget used if you don't specify
|
||||||
``min_length`` are provided. Otherwise, all inputs are valid.
|
``min_length`` are provided. Otherwise, all inputs are valid.
|
||||||
* Error message keys: ``required``, ``max_length``, ``min_length``
|
* Error message keys: ``required``, ``max_length``, ``min_length``
|
||||||
|
|
||||||
Has three optional arguments for validation:
|
Has four optional arguments for validation:
|
||||||
|
|
||||||
.. attribute:: max_length
|
.. attribute:: max_length
|
||||||
.. attribute:: min_length
|
.. attribute:: min_length
|
||||||
|
|
||||||
If provided, these arguments ensure that the string is at most or at least
|
If provided, these arguments ensure that the string is at most or at
|
||||||
the given length.
|
least the given length.
|
||||||
|
|
||||||
.. attribute:: strip
|
.. attribute:: strip
|
||||||
|
|
||||||
|
@ -774,7 +774,7 @@ For each field, we describe the default widget used if you don't specify
|
||||||
.. attribute:: max_value
|
.. attribute:: max_value
|
||||||
.. attribute:: min_value
|
.. attribute:: min_value
|
||||||
|
|
||||||
These control the range of values permitted in the field.
|
These control the range of values permitted in the field.
|
||||||
|
|
||||||
``JSONField``
|
``JSONField``
|
||||||
-------------
|
-------------
|
||||||
|
@ -1005,7 +1005,8 @@ For each field, we describe the default widget used if you don't specify
|
||||||
.. attribute:: max_length
|
.. attribute:: max_length
|
||||||
.. attribute:: min_length
|
.. attribute:: min_length
|
||||||
|
|
||||||
These are the same as ``CharField.max_length`` and ``CharField.min_length``.
|
These are the same as ``CharField.max_length`` and
|
||||||
|
``CharField.min_length``.
|
||||||
|
|
||||||
``UUIDField``
|
``UUIDField``
|
||||||
-------------
|
-------------
|
||||||
|
|
Loading…
Reference in New Issue