[Django]-Metaclass conflict with modelformset_factory in Django

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.

Leave a comment