Verified Commit b3383919 authored by Alexandre | L'Sacienne's avatar Alexandre | L'Sacienne
Browse files

Fix black pipeline

parent ee3e375d
Pipeline #2498 passed with stage
in 24 minutes and 31 seconds
...@@ -118,11 +118,14 @@ class SelectFile(TextInput): ...@@ -118,11 +118,14 @@ class SelectFile(TextInput):
attrs["class"] = "select_file" attrs["class"] = "select_file"
else: else:
attrs = {"class": "select_file"} attrs = {"class": "select_file"}
output = '%(content)s<div name="%(name)s" class="choose_file_widget" title="%(title)s"></div>' % { output = (
"content": super(SelectFile, self).render(name, value, attrs, renderer), '%(content)s<div name="%(name)s" class="choose_file_widget" title="%(title)s"></div>'
"title": _("Choose file"), % {
"name": name, "content": super(SelectFile, self).render(name, value, attrs, renderer),
} "title": _("Choose file"),
"name": name,
}
)
output += ( output += (
'<span name="' '<span name="'
+ name + name
...@@ -139,11 +142,14 @@ class SelectUser(TextInput): ...@@ -139,11 +142,14 @@ class SelectUser(TextInput):
attrs["class"] = "select_user" attrs["class"] = "select_user"
else: else:
attrs = {"class": "select_user"} attrs = {"class": "select_user"}
output = '%(content)s<div name="%(name)s" class="choose_user_widget" title="%(title)s"></div>' % { output = (
"content": super(SelectUser, self).render(name, value, attrs, renderer), '%(content)s<div name="%(name)s" class="choose_user_widget" title="%(title)s"></div>'
"title": _("Choose user"), % {
"name": name, "content": super(SelectUser, self).render(name, value, attrs, renderer),
} "title": _("Choose user"),
"name": name,
}
)
output += ( output += (
'<span name="' '<span name="'
+ name + name
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment