1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

Updates 2.23 (#843)

* pipenv lock and pyupgrade

* pyupgrade, black format, add docs

* update for py3.7
This commit is contained in:
Matt Griswold
2020-09-30 01:13:38 +00:00
committed by GitHub
parent aed211418d
commit 04f1928b3c
89 changed files with 765 additions and 511 deletions

View File

@@ -147,14 +147,11 @@ class IXLanAutocomplete(AutocompleteHTMLResponse):
return qs
def get_result_label(self, item):
return (
'<span data-value="%d"><div class="main">%s <div class="tiny suffix">%s</div></div> <div class="sub">%s</div></span>'
% (
item.pk,
html.escape(item.ix.name),
html.escape(item.ix.country.code),
html.escape(item.ix.name_long),
)
return '<span data-value="%d"><div class="main">%s <div class="tiny suffix">%s</div></div> <div class="sub">%s</div></span>' % (
item.pk,
html.escape(item.ix.name),
html.escape(item.ix.country.code),
html.escape(item.ix.name_long),
)