def get_factory_kwargs(self):
    kwargs = super(BaseInlineFormSetMixin, self).get_factory_kwargs()
    kwargs.update({'exclude': self.exclude, 'fields': self.fields, 'formfield_callback': self.formfield_callback, 'fk_name': self.fk_name})
    if self.get_form_class():
        kwargs['form'] = self.get_form_class()
    if self.get_formset_class():
        kwargs['formset'] = self.get_formset_class()
    return kwargs
def get_factory_kwargs(self):
    kwargs = super(BaseInlineFormSetMixin, self).get_factory_kwargs()
    kwargs.update({'exclude': self.exclude, 'fields': self.fields, 'formfield_callback': self.formfield_callback, 'fk_name': self.fk_name})
    if self.get_form_class():
        kwargs['form'] = self.get_form_class()
    if self.get_formset_class():
        kwargs['formset'] = self.get_formset_class()
    return kwargs