Fix dict created at compile time in bootstrap_horizontal
This commit is contained in:
parent
5dce970179
commit
61e3028144
@ -20,13 +20,9 @@ def bootstrap_inline(element):
|
|||||||
|
|
||||||
|
|
||||||
@register.filter
|
@register.filter
|
||||||
def bootstrap_horizontal(element, label_cols={}):
|
def bootstrap_horizontal(element, label_cols='col-sm-2 col-lg-2'):
|
||||||
if not label_cols:
|
|
||||||
label_cols = 'col-sm-2 col-lg-2'
|
|
||||||
|
|
||||||
markup_classes = {'label': label_cols,
|
markup_classes = {'label': label_cols, 'value': '', 'single_value': ''}
|
||||||
'value': '',
|
|
||||||
'single_value': ''}
|
|
||||||
|
|
||||||
for cl in label_cols.split(' '):
|
for cl in label_cols.split(' '):
|
||||||
splited_class = cl.split('-')
|
splited_class = cl.split('-')
|
||||||
|
Loading…
Reference in New Issue
Block a user