diff --git a/bootstrapform/config.py b/bootstrapform/config.py index dec5116..b1b8ecb 100644 --- a/bootstrapform/config.py +++ b/bootstrapform/config.py @@ -1,3 +1,4 @@ from django.conf import settings + BOOTSTRAP_COLUMN_COUNT = getattr(settings, 'BOOTSTRAP_COLUMN_COUNT', 12) diff --git a/bootstrapform/templatetags/bootstrap.py b/bootstrapform/templatetags/bootstrap.py index 8c36c18..7a9ea6c 100644 --- a/bootstrapform/templatetags/bootstrap.py +++ b/bootstrapform/templatetags/bootstrap.py @@ -51,8 +51,8 @@ def bootstrap_horizontal(element, label_cols={}): def add_input_classes(field): - if not is_checkbox(field) and not is_multiple_checkbox(field) and not is_radio(field) \ - and not is_file(field): + if not is_checkbox(field) and not is_multiple_checkbox(field) \ + and not is_radio(field) and not is_file(field): field_classes = field.field.widget.attrs.get('class', '') field_classes += ' form-control' field.field.widget.attrs['class'] = field_classes