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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19671, comment 4

    initial v1  
    1 In case of `Models`, we make objects like:
     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.
    22
    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.
     3But 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.
Back to Top