summaryrefslogtreecommitdiff
path: root/docs/ref/validators.txt
diff options
context:
space:
mode:
authorAkshesh <aksheshdoshi@gmail.com>2016-02-16 03:40:00 +0530
committerTim Graham <timograham@gmail.com>2016-02-18 18:58:18 -0500
commitd58aaa24e31f10e56a7f05a4451cd06a3cc6e65d (patch)
tree75b2a1d79cd855a4f8fce44212624f466cf9a7b9 /docs/ref/validators.txt
parentb954ad0640e1f246f60f31a07a567274c2f20751 (diff)
Fixed #26107 -- Added option to int_list_validator() to allow negative integers.
Diffstat (limited to 'docs/ref/validators.txt')
-rw-r--r--docs/ref/validators.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt
index 13832cfa46..f6feca58c9 100644
--- a/docs/ref/validators.txt
+++ b/docs/ref/validators.txt
@@ -226,12 +226,17 @@ to, or in lieu of custom ``field.clean()`` methods.
``int_list_validator``
----------------------
-.. function:: int_list_validator(sep=',', message=None, code='invalid')
+.. function:: int_list_validator(sep=',', message=None, code='invalid', allow_negative=False)
.. versionadded:: 1.9
- Returns a :class:`RegexValidator` instance that ensures a string
- consists of integers separated by ``sep``.
+ Returns a :class:`RegexValidator` instance that ensures a string consists
+ of integers separated by ``sep``. It allows negative integers when
+ ``allow_negative`` is ``True``.
+
+ .. versionchanged:: 1.10
+
+ The ``allow_negative`` parameter was added.
``MaxValueValidator``
---------------------