1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Clean up Select2 widget Javascript

This commit is contained in:
Jeremy Stretch
2020-08-12 14:03:58 -04:00
parent c40df97ffa
commit 5372492785
3 changed files with 5 additions and 26 deletions

View File

@@ -141,7 +141,7 @@ class APISelect(SelectWithDisabled):
:param name: The name of the query param
:param value: The value of the query param
"""
key = f'data-additional-query-param-{name}'
key = f'data-query-param-{name}'
values = json.loads(self.attrs.get(key, '[]'))
if type(value) is list: