| 3 | | {{{ |
| 4 | | obj = Model1(name="myname") |
| 5 | | obj.full_clean() |
| 6 | | obj.save() |
| 7 | | obj.m2m_field.add(objs) |
| 8 | | }}} |
| 9 | | So in case of `Models`, calling full_clean() will definitely not run validators for M2M. |
| 10 | | So for the case of `Models`, we should update the docs that validators for M2M do not work, 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. |
| | 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. |