def get_factory_kwargs(self):
    kwargs = {'extra': self.extra, 'max_num': self.max_num, 'can_order': self.can_order, 'can_delete': self.can_delete}
    if self.get_formset_class():
        kwargs['formset'] = self.get_formset_class()
    return kwargs
def get_factory_kwargs(self):
    kwargs = {'extra': self.extra, 'max_num': self.max_num, 'can_order': self.can_order, 'can_delete': self.can_delete}
    if self.get_formset_class():
        kwargs['formset'] = self.get_formset_class()
    return kwargs