Clean up Select2 widget Javascript

This commit is contained in:
Jeremy Stretch
2020-08-12 14:03:58 -04:00
parent 93757df97d
commit d7d941d3be
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: