December 2018
Beginner to intermediate
404 pages
10h 14m
English
Often, applications need to ensure data integrity, and enforce some validations to ensure that data is complete and correct.
The PostgreSQL database manager supports many useful validations, such as avoiding duplicates, or checking that values meet certain simple conditions. Model can declare and use PostgreSQL constraints for this.
Some checks require more sophisticated logic, and are better implemented as Python code. For these cases, we can use specific model methods implementing Python constraint logic.
Read now
Unlock full access