2👍
✅
ProductFormSet = inlineformset_factory(Product, Size, ProductImage, ...)
The third argument to inlineformset_factory
should be a model form class. From the name ProductImage
, it sounds like you have passed a model. Perhaps you meant to use ProductModelForm
instead.
Source:stackexchange.com