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

Cast all query param values to string

This commit is contained in:
Jeremy Stretch
2020-08-14 11:38:15 -04:00
parent 66c91484f5
commit b4299241fe

View File

@ -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)