def __init__(self, form, *args, **kwargs):
    if (not isinstance(form, BaseForm)):
        raise BootstrapError('Parameter "form" should contain a valid Django Form.')
    self.form = form
    super().__init__(*args, **kwargs)
    self.error_css_class = kwargs.get('error_css_class', None)
    self.required_css_class = kwargs.get('required_css_class', None)
    self.bound_css_class = kwargs.get('bound_css_class', None)
    self.alert_error_type = kwargs.get('alert_error_type', 'non_fields')
    self.form_check_class = kwargs.get('form_check_class', 'form-check')
def __init__(self, form, *args, **kwargs):
    if (not isinstance(form, BaseForm)):
        raise BootstrapError('Parameter "form" should contain a valid Django Form.')
    self.form = form
    super().__init__(*args, **kwargs)
    self.error_css_class = kwargs.get('error_css_class', None)
    self.required_css_class = kwargs.get('required_css_class', None)
    self.bound_css_class = kwargs.get('bound_css_class', None)
    self.alert_error_type = kwargs.get('alert_error_type', 'non_fields')
    self.form_check_class = kwargs.get('form_check_class', 'form-check')