Explorar o código

post_data(): Ignore iterables

Jeremy Stretch %!s(int64=6) %!d(string=hai) anos
pai
achega
6a17be740b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      netbox/utilities/testing/utils.py

+ 2 - 0
netbox/utilities/testing/utils.py

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