mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 20:32:25 -06:00
Fixes #5111: Allow use of tuples when specifying ObjectVar query_params
This commit is contained in:
@@ -141,7 +141,7 @@ class APISelect(SelectWithDisabled):
|
||||
key = f'data-query-param-{name}'
|
||||
|
||||
values = json.loads(self.attrs.get(key, '[]'))
|
||||
if type(value) is list:
|
||||
if type(value) in (list, tuple):
|
||||
values.extend([str(v) for v in value])
|
||||
else:
|
||||
values.append(str(value))
|
||||
|
||||
Reference in New Issue
Block a user