Django stuck on validating models


05-Mar-2017 05:34

The example I am considering here is a University Student model, referencing User model via the One To One field.

If not, please learn more and feel free to return if you are ever stuck on nested relationships in serialization.Now, whenever I save an object of type Post anywhere in my Django application, these functions will first check to see if the title is at least 5 characters.Another way to tackle this problem is to validate the form input as soon as the user enters his/her data.How do we validate form data before we save it to a database?