2👍
Your form doesn’t actually define any fields, so I don’t know what you’re expecting to get in cleaned_data. formfield_callback
is only useful in a ModelForm, where it operates on the fields already defined by a model: but your form is not based on a model.
Either use a model form, or define your form fields explicitly in your form class.
Source:stackexchange.com