Kaydet (Commit) f903669d authored tarafından sedrubal's avatar sedrubal Kaydeden (comit) Tim Graham

Fixed argument name for validators inheriting from BaseValidator.

üst c530428d
......@@ -233,34 +233,34 @@ to, or in lieu of custom ``field.clean()`` methods.
``MaxValueValidator``
---------------------
.. class:: MaxValueValidator(max_value, message=None)
.. class:: MaxValueValidator(limit_value, message=None)
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
``'max_value'`` if ``value`` is greater than ``max_value``.
``'max_value'`` if ``value`` is greater than ``limit_value``.
``MinValueValidator``
---------------------
.. class:: MinValueValidator(min_value, message=None)
.. class:: MinValueValidator(limit_value, message=None)
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
``'min_value'`` if ``value`` is less than ``min_value``.
``'min_value'`` if ``value`` is less than ``limit_value``.
``MaxLengthValidator``
----------------------
.. class:: MaxLengthValidator(max_length, message=None)
.. class:: MaxLengthValidator(limit_value, message=None)
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
``'max_length'`` if the length of ``value`` is greater than ``max_length``.
``'max_length'`` if the length of ``value`` is greater than ``limit_value``.
``MinLengthValidator``
----------------------
.. class:: MinLengthValidator(min_length, message=None)
.. class:: MinLengthValidator(limit_value, message=None)
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
``'min_length'`` if the length of ``value`` is less than ``min_length``.
``'min_length'`` if the length of ``value`` is less than ``limit_value``.
``DecimalValidator``
--------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment