This commit is contained in:
Stéphane Raimbault 2014-04-24 18:34:33 +02:00
parent 5dce970179
commit cc3fa57286
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