fix bug
diff --git a/plstackapi/planetstack/views/deployment_networks.py b/plstackapi/planetstack/views/deployment_networks.py
index f968297..73dce95 100644
--- a/plstackapi/planetstack/views/deployment_networks.py
+++ b/plstackapi/planetstack/views/deployment_networks.py
@@ -18,7 +18,7 @@
if 'auth' not in data:
return Response(status=status.HTTP_400_BAD_REQUEST)
elif 'deployment_network' in data:
- deployment = add_deployment_network(data['auth'], data['deployment_network'])
+ deployment = add_deployment_network(data['auth'], data['deployment_network'].get('name'))
serializer = DeploymentNetworkSerializer(deployment)
return Response(serializer.data, status=status.HTTP_201_CREATED)
else: