def simple_formset_factory(form, add_label='+', formset=BaseSimpleFormSet, initial=None):
 attrs = {'form': form, 'add_label': add_label, 'initial': initial}
 return type((form.__name__ + 'SimpleFormSet'), (formset,), attrs)

def simple_formset_factory ( form , add_label = '+' , formset = BaseSimpleFormSet , initial = None ) : attrs = { 'form' : form , 'add_label' : add_label , 'initial' : initial } return type ( ( form . __name__ + 'SimpleFormSet' ) , ( formset , ) , attrs )
return a formset for the given form class .