summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorsedrubal <sedrubal@users.noreply.github.com>2018-07-01 00:58:35 +0200
committerTim Graham <timograham@gmail.com>2018-06-30 18:58:56 -0400
commit7bec414ffb56380c8d17240a7c16a6718d7abe69 (patch)
tree482f99dda66156b688400a20e92cb1df1db397e6 /docs
parente410dce696d4b8aa8966e7c0931129015a6d84df (diff)
[2.1.x] Fixed argument name for validators inheriting from BaseValidator.
Backport of f903669dfda1dda586c4fee5bd7268eb599880b8 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/validators.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt
index 2abfd3599e..5c4d274eb2 100644
--- a/docs/ref/validators.txt
+++ b/docs/ref/validators.txt
@@ -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``
--------------------