int_list_validator(sep=', ', message=None, code='invalid', allow_negative=False)
[source]
New in Django 1.9.
Returns a RegexValidator
instance that ensures a string consists of integers separated by sep
. It allows negative integers when allow_negative
is True
.
Changed in Django 1.10:
The allow_negative
parameter was added.
Please login to continue.