Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django form set min and max value

overs = models.PositiveIntegerField(default=10, validators=[MinValueValidator(1), MaxValueValidator(100)])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #form #set #min #max
ADD COMMENT
Topic
Name
5+8 =