I rewrote the methods clean()for some of my models to create constraints to meet my database schema requirements (since these checks required runtime information).
Since I finished most of the back components (models, signals, ..), now I am trying to write ModelFormfor my models.
I am wondering if there is any connection between the clean()model method and the clean()implementation on the form side?
If this is the case and the form clean()invokes the model clean(), I will not have to rewrite the implementation of the model clean()and avoid code redundancy.
source
share