Open Grsaiago opened 2 months ago
Currently the constraints are implemented in the clean method of each model. We have to change it to the Meta class in each model. Docs: https://docs.djangoproject.com/en/5.1/ref/models/options/#django.db.models.Options.constraints
Currently the constraints are implemented in the clean method of each model. We have to change it to the Meta class in each model. Docs: https://docs.djangoproject.com/en/5.1/ref/models/options/#django.db.models.Options.constraints