(self)
return formset
Overrides construct_formset to attach the model class as
        an attribute of the returned formset instance.
Overrides construct_formset to attach the model class as
        an attribute of the returned formset instance.
Overrides construct_formset to attach the model class as an attribute of the returned formset instance .
def construct_formset(self):
        """
        Overrides construct_formset to attach the model class as
        an attribute of the returned formset instance.
        """
        formset = super().construct_formset()
        formset.model = self.inline_model
        formset.template = self.template
        return formset
def construct_formset ( self ) : formset = super ( ) . construct_formset ( ) formset . model = self . inline_model formset . template = self . template return formset