core.validators.int_list_validator()

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.

doc_Django
2016-10-09 18:35:01
Comments
Leave a Comment

Please login to continue.