mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Cast all query param values to string
This commit is contained in:
parent
66c91484f5
commit
b4299241fe
@ -142,9 +142,9 @@ class APISelect(SelectWithDisabled):
|
||||
|
||||
values = json.loads(self.attrs.get(key, '[]'))
|
||||
if type(value) is list:
|
||||
values.extend(value)
|
||||
values.extend([str(v) for v in value])
|
||||
else:
|
||||
values.append(value)
|
||||
values.append(str(value))
|
||||
|
||||
self.attrs[key] = json.dumps(values)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user