Added some missing newlines in docs/ref/validators.txt.
This commit is contained in:
parent
e2bfcab065
commit
f4cc0c40a8
|
@ -67,6 +67,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``RegexValidator``
|
``RegexValidator``
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
.. class:: RegexValidator([regex=None, message=None, code=None, inverse_match=None, flags=0])
|
.. class:: RegexValidator([regex=None, message=None, code=None, inverse_match=None, flags=0])
|
||||||
|
|
||||||
:param regex: If not ``None``, overrides :attr:`regex`. Can be a regular
|
:param regex: If not ``None``, overrides :attr:`regex`. Can be a regular
|
||||||
|
@ -142,6 +143,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``URLValidator``
|
``URLValidator``
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
.. class:: URLValidator([schemes=None, regex=None, message=None, code=None])
|
.. class:: URLValidator([schemes=None, regex=None, message=None, code=None])
|
||||||
|
|
||||||
A :class:`RegexValidator` that ensures a value looks like a URL, and raises
|
A :class:`RegexValidator` that ensures a value looks like a URL, and raises
|
||||||
|
@ -168,12 +170,14 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``validate_email``
|
``validate_email``
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
.. data:: validate_email
|
.. data:: validate_email
|
||||||
|
|
||||||
An :class:`EmailValidator` instance without any customizations.
|
An :class:`EmailValidator` instance without any customizations.
|
||||||
|
|
||||||
``validate_slug``
|
``validate_slug``
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
.. data:: validate_slug
|
.. data:: validate_slug
|
||||||
|
|
||||||
A :class:`RegexValidator` instance that ensures a value consists of only
|
A :class:`RegexValidator` instance that ensures a value consists of only
|
||||||
|
@ -181,6 +185,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``validate_ipv4_address``
|
``validate_ipv4_address``
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
.. data:: validate_ipv4_address
|
.. data:: validate_ipv4_address
|
||||||
|
|
||||||
A :class:`RegexValidator` instance that ensures a value looks like an IPv4
|
A :class:`RegexValidator` instance that ensures a value looks like an IPv4
|
||||||
|
@ -203,6 +208,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``validate_comma_separated_integer_list``
|
``validate_comma_separated_integer_list``
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
.. data:: validate_comma_separated_integer_list
|
.. data:: validate_comma_separated_integer_list
|
||||||
|
|
||||||
A :class:`RegexValidator` instance that ensures a value is a
|
A :class:`RegexValidator` instance that ensures a value is a
|
||||||
|
@ -210,6 +216,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``MaxValueValidator``
|
``MaxValueValidator``
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
.. class:: MaxValueValidator(max_value, message=None)
|
.. class:: MaxValueValidator(max_value, message=None)
|
||||||
|
|
||||||
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
||||||
|
@ -221,6 +228,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``MinValueValidator``
|
``MinValueValidator``
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
.. class:: MinValueValidator(min_value, message=None)
|
.. class:: MinValueValidator(min_value, message=None)
|
||||||
|
|
||||||
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
||||||
|
@ -232,6 +240,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``MaxLengthValidator``
|
``MaxLengthValidator``
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
.. class:: MaxLengthValidator(max_length, message=None)
|
.. class:: MaxLengthValidator(max_length, message=None)
|
||||||
|
|
||||||
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
||||||
|
@ -243,6 +252,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||||
|
|
||||||
``MinLengthValidator``
|
``MinLengthValidator``
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
.. class:: MinLengthValidator(min_length, message=None)
|
.. class:: MinLengthValidator(min_length, message=None)
|
||||||
|
|
||||||
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
||||||
|
|
Loading…
Reference in New Issue