I think the default validators are relevant to the type of field you define. If you define a general field which is not required and without max_length, I assume there will not be any default validators. You can then define your own validators, either in the model or in the relevant forms and views. In the forms I think you can also add your own validators before the default validators, if you want to keep the default validators but show your own error messages instead of the error messages of the default validators. אורי u...@speedy.net
On Fri, Apr 5, 2019 at 8:10 AM veera nagaraja sankar Inti < intisank...@gmail.com> wrote: > Hi All, > > I working on Django validation, > > i have done some practice, > > I observed somethig plase let know if any misunderstadings, > > 1) When every datatype in models have default validators or worked, it is > worked on the form contains *is_valid()* or else ?.. > > 2)we can add the custom validations using *validators=[nameofthevalidation > function] which *is only inadditionto the existing validators means > validate defaultvalidators first and then next custom validations, If we > use *required=true * use in remove only custom validation only ?.. > > 3) i need to mute all default validation and add only my custom validation > ---Explain in datail plesase > > > Thank you all > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/3e2e519b-4d0f-429c-9ed1-ffe0b7de9055%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/3e2e519b-4d0f-429c-9ed1-ffe0b7de9055%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABD5YeFK0fkVQQ_GSe4-Wjhp%3De0hBR-HOyPd%3DPEtgnAVL%2B9ESQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.