Re: is_valid() method and cleaned_data attribute

2019-03-22 Thread Mohammad Etemaddar
Every field in Form has validators which check the value against their conditions. as Django Doc sais : The primary task of a Form object

Re: is_valid() method and cleaned_data attribute

2019-03-22 Thread Marcio Bernardes
is_valid() validates the form, for instance, if you have a field for integers and the user passes a str the 'is_valid()' will return false. The cleaned_data is the method you can use to access the data from the input if the form is valid, if the form is not valid this method will not contain

is_valid() method and cleaned_data attribute

2019-03-22 Thread omar ahmed
hello guys i created contact form in my view : if form.is_valid(): message = form.cleaned_data['message'] what is .is_valid() method and what is cleaned_data attribute ??? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this