1👍
✅
Your syntax is incorrect. You should provide the validators as a list to the validators
argument:
models.IntegerField(validators=[MinValueValidator(1), MaxValueValidator(10)], default=5, help_text='integers 1 to 10')
For more information, see the docs for using validation in practice.
Source:stackexchange.com