[Answered ]-U'__module__' error on creating inline formset

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.

Leave a comment