url_filter.validators module¶
-
class
url_filter.validators.
MaxLengthValidator
(limit_value, message=None)[source]¶ Bases:
django.core.validators.MaxLengthValidator
Customer Django max length validator with better-suited error message
-
clean
(x)¶
-
code
= u'max_length'¶
-
compare
(a, b)¶
-
deconstruct
(obj)¶ Returns a 3-tuple of class import path, positional arguments, and keyword arguments.
-
message
= <django.utils.functional.__proxy__ object>¶
-
-
class
url_filter.validators.
MinLengthValidator
(limit_value, message=None)[source]¶ Bases:
django.core.validators.MinLengthValidator
Customer Django min length validator with better-suited error message
-
clean
(x)¶
-
code
= u'min_length'¶
-
compare
(a, b)¶
-
deconstruct
(obj)¶ Returns a 3-tuple of class import path, positional arguments, and keyword arguments.
-
message
= <django.utils.functional.__proxy__ object>¶
-