From cc3fa5728624e8a0bd857c3f6d173e4f1b830f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Raimbault?= Date: Thu, 24 Apr 2014 18:34:33 +0200 Subject: [PATCH] Pylint --- bootstrapform/config.py | 1 + bootstrapform/templatetags/bootstrap.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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