Browse Source

small typo about the filter:

before it was printing a class "[] input"
instead of "input"
pull/250/head
Guillim 5 years ago
parent
commit
9ba9321f63
1 changed files with 1 additions and 1 deletions
  1. 2
      app/authentification/templatetags/utils_templating.py

2
app/authentification/templatetags/utils_templating.py

@ -7,5 +7,5 @@ register = template.Library()
def addcss(value, arg):
css_classes = value.field.widget.attrs.get('class', '').split(' ')
if css_classes and arg not in css_classes:
css_classes = '%s %s' % (css_classes, arg)
css_classes = '%s %s' % (*css_classes, arg)
return value.as_widget(attrs={'class': css_classes})
Loading…
Cancel
Save