From 9ba9321f63f6e39bd935770c1a1adbf76c1c3db6 Mon Sep 17 00:00:00 2001 From: Guillim Date: Thu, 27 Jun 2019 16:18:25 +0200 Subject: [PATCH] small typo about the filter: before it was printing a class "[] input" instead of "input" --- app/authentification/templatetags/utils_templating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/authentification/templatetags/utils_templating.py b/app/authentification/templatetags/utils_templating.py index ced2894d..26bf3af3 100644 --- a/app/authentification/templatetags/utils_templating.py +++ b/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})