Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django validator min max value

from django.core.validators import MaxValueValidator, MinValueValidator

max_discount = models.FloatField( verbose_name=u'Maximum Discount', validators = [MinValueValidator(0.0)])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #validator #min #max
ADD COMMENT
Topic
Name
6+8 =