1👍
The issue is that form.is_valid
should be form.is_valid()
. The reason is that the value returned by form.is_valid
is not None
which evaluates to True always and since the function has not been called, cleaned_data
is not filled with the validated data.
Source:stackexchange.com