6👍
✅
Solved it. If you look carefully
# this has forms.ModelForm
class ImageAttachmentForm(forms.ModelForm):
# this has forms.Form
class AudioAttachmentForm(forms.Form):
I’ve changed forms.Form
to forms.ModelForm
and everything works now – this was a simple copy/paste error.
Source:stackexchange.com