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

post_data(): Ignore iterables

This commit is contained in:
Jeremy Stretch
2020-01-31 11:50:12 -05:00
parent 7daf1df22d
commit 6a17be740b

View File

@ -32,6 +32,8 @@ def post_data(data):
for key, value in data.items():
if value is None:
ret[key] = ''
elif type(value) in (list, tuple):
ret[key] = value
else:
ret[key] = str(value)