make pycodestyle happy...

This commit is contained in:
dadosch 2018-08-31 00:17:48 +02:00
parent efb0157337
commit ec862ed526

View File

@ -202,13 +202,11 @@ class DocumentAdmin(CommonAdmin):
@staticmethod
def _html_tag(kind, inside=None, **kwargs):
attributes = format_html_join(' ', '{}="{}"', kwargs.items())
attributes = format_html_join(' ', '{}="{}"', kwargs.items())
if inside is not None:
return format_html("<{kind} {attributes}>{inside}</{kind}>",
kind=kind, attributes=attributes, inside=inside)
kind=kind, attributes=attributes, inside=inside)
return format_html("<{} {}/>", kind, attributes)