def get_form_kwargs(self, key):
        """
        Returns the keyword arguments for instantiating the form.
        """
        kwargs = super(MultipleModelFormMixin, self).get_form_kwargs(key)
        if hasattr(self, '{}_object'.format(key)):
            kwargs.update({'instance': getattr(self, '{}_object'.format(key))})
        return kwargs
def get_form_kwargs ( self , key ) : kwargs = super ( MultipleModelFormMixin , self ) . get_form_kwargs ( key ) if hasattr ( self , '{}_object' . format ( key ) ) : kwargs . update ( { 'instance' : getattr ( self , '{}_object' . format ( key ) ) } ) return kwargs
Returns the keyword arguments for instantiating the form.