Tech Insights· adamj.eu
Use Django CheckConstraint class to constrain Field.choices:
From adamj.eu
This post is a PSA on the somewhat unintuitive way Field.choices works in Django.
Shared by
- Check
- Constraint
- Database
- Django
- Validation



