I have a django model,
class MyModel(models.Model) qty = model.IntegerField()
where I want to set constraint for qty somet
qty
If you are using postgres, you can use range fields to specify the range. Check this: Range Fields in django