I have a model:
from django.contrib.postgres.fields import IntegerRangeField
class Album(models.Model):
rating = IntegerRangeField(default=0)
I want to set maximum and minimum value for default validation purpose. There is already an answer , but that validation will not run automatically.
So How to set a min and max value in the rating
field ?