Changes between Version 1 and Version 2 of Ticket #19671, comment 4


Ignore:
Timestamp:
Jul 8, 2014, 11:32:59 PM (10 years ago)
Author:
ANUBHAV JOSHI

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19671, comment 4

    v1 v2  
    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.
     1As 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.
     2And 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.
Back to Top