[Fixed]-Form bound, but has nothing in cleaned_data

1👍

forms.Textarea is not a field, it is a widget. Your form has no actual fields in it, so cleaned_data is empty.

You should use forms.CharField in your form; if you need it to display as a textarea you can pass that as the widget argument:

class NewChat(forms.Form):
    message = forms.CharField(widget=forms.Textarea())

Leave a comment