We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3553a7c + 61e3028 commit b8bf90dCopy full SHA for b8bf90d
bootstrapform/templatetags/bootstrap.py
@@ -20,13 +20,9 @@ def bootstrap_inline(element):
20
21
22
@register.filter
23
-def bootstrap_horizontal(element, label_cols={}):
24
- if not label_cols:
25
- label_cols = 'col-sm-2 col-lg-2'
+def bootstrap_horizontal(element, label_cols='col-sm-2 col-lg-2'):
26
27
- markup_classes = {'label': label_cols,
28
- 'value': '',
29
- 'single_value': ''}
+ markup_classes = {'label': label_cols, 'value': '', 'single_value': ''}
30
31
for cl in label_cols.split(' '):
32
splitted_class = cl.split('-')
0 commit comments