Grsaiago / ft_transcendence

Transcending in django
0 stars 0 forks source link

refactor model constraints #17

Open Grsaiago opened 2 months ago

Grsaiago commented 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