Merge pull request #55 from stephane/pylint

Pylint
This commit is contained in:
tzangms 2015-01-24 00:01:36 +08:00
commit 8831ee56dd
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
from django.conf import settings
BOOTSTRAP_COLUMN_COUNT = getattr(settings, 'BOOTSTRAP_COLUMN_COUNT', 12)

View File

@ -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