mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
make pycodestyle happy...
This commit is contained in:
parent
efb0157337
commit
ec862ed526
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue