Pylint
This commit is contained in:
parent
5dce970179
commit
cc3fa57286
@ -1,3 +1,4 @@
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
BOOTSTRAP_COLUMN_COUNT = getattr(settings, 'BOOTSTRAP_COLUMN_COUNT', 12)
|
BOOTSTRAP_COLUMN_COUNT = getattr(settings, 'BOOTSTRAP_COLUMN_COUNT', 12)
|
||||||
|
@ -51,8 +51,8 @@ def bootstrap_horizontal(element, label_cols={}):
|
|||||||
|
|
||||||
|
|
||||||
def add_input_classes(field):
|
def add_input_classes(field):
|
||||||
if not is_checkbox(field) and not is_multiple_checkbox(field) and not is_radio(field) \
|
if not is_checkbox(field) and not is_multiple_checkbox(field) \
|
||||||
and not is_file(field):
|
and not is_radio(field) and not is_file(field):
|
||||||
field_classes = field.field.widget.attrs.get('class', '')
|
field_classes = field.field.widget.attrs.get('class', '')
|
||||||
field_classes += ' form-control'
|
field_classes += ' form-control'
|
||||||
field.field.widget.attrs['class'] = field_classes
|
field.field.widget.attrs['class'] = field_classes
|
||||||
|
Loading…
Reference in New Issue
Block a user