def __init__(self, formset, *args, **kwargs):
    if (not isinstance(formset, BaseFormSet)):
        raise BootstrapError('Parameter "formset" should contain a valid Django Formset.')
    self.formset = formset
    super().__init__(*args, **kwargs)
def __init__(self, formset, *args, **kwargs):
    if (not isinstance(formset, BaseFormSet)):
        raise BootstrapError('Parameter "formset" should contain a valid Django Formset.')
    self.formset = formset
    super().__init__(*args, **kwargs)