Skip to content

Commit b8bf90d

Browse files
committed
Merge pull request tzangms#53 from stephane/fix-bootstrap-horizontal-arg
Fix dict created at compile time in bootstrap_horizontal
2 parents 3553a7c + 61e3028 commit b8bf90d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bootstrapform/templatetags/bootstrap.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,9 @@ def bootstrap_inline(element):
2020

2121

2222
@register.filter
23-
def bootstrap_horizontal(element, label_cols={}):
24-
if not label_cols:
25-
label_cols = 'col-sm-2 col-lg-2'
23+
def bootstrap_horizontal(element, label_cols='col-sm-2 col-lg-2'):
2624

27-
markup_classes = {'label': label_cols,
28-
'value': '',
29-
'single_value': ''}
25+
markup_classes = {'label': label_cols, 'value': '', 'single_value': ''}
3026

3127
for cl in label_cols.split(' '):
3228
splitted_class = cl.split('-')

0 commit comments

Comments
 (0)