Django DateField Form Generates None In Cleaned_data
After selecting dates from DateField's form in django and hitting submit button, is_valid() succeeds, but cleaned_data shows None. Does anyone know what is the issue? Thanks forms
Solution 1:
This happens because one of the fields isn't cleaned. You can confirm which field by doing an else
and print(form_date.cleaned_data)
, the print
's should have one less field.
Post a Comment for "Django DateField Form Generates None In Cleaned_data"