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:
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user