def construct_formset(self):
        formset = super(InlineFormSet, self).construct_formset()
        formset.model = self.inline_model
        return formset
Overrides construct_formset to attach the model class as
dataset/ETHPy150Open AndrewIngram/django-extra-views/extra_views/advanced.py/InlineFormSet.construct_formset