[Answer]-User Input Restrictions in Django generated forms

1👍

Use MaxValueValidator validator for that field

from django.core.validators import MaxValueValidator

field = models.SmallIntegerField(validators=[MaxValueValidator(9999),])

Leave a comment