Changes between Version 3 and Version 4 of Ticket #19671, comment 4


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19671, comment 4

    v3 v4  
    11As 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.
    22And 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 and must be validated.
     3The patch is also available at https://github.com/coder9042/django/compare/gsoc_19671
Back to Top