Using Django Check Constraints to Limit the Range of an IntegerField
Another way to use database constraints via Django’s
CheckConstraint class.
CheckConstraint class.