1 | | `Models` will definitely not run validators for M2M, so for the case of `Models`, we should update the docs that validators for M2M do not work. |
2 | | |
3 | | But as Florian(fhahn) says that validators could be used in case of forms, I too am of the same opinion because in case of forms, when we provide the entire data all at once, we can surely run the validators on it when `full_clean()` on `ModelForm` is called, for which I have attached a patch. |
| 1 | As Florian(fhahn) says that validators could be used in case of forms, I too am of the same opinion because in case of forms, when we provide the entire data all at once, we can surely run the validators on it when `full_clean()` on `ModelForm` is called, for which I have attached a patch. |
| 2 | And also we should update the docs saying that validators for M2M have meaning only when ModelForm is used as otherwise they can't because the m2m validators play no role in `model instance`'s `full_clean()` is called, but definitely when form's `full_clean()` is being called as it is part of form data. |