fix bug
diff --git a/plstackapi/planetstack/views/roles.py b/plstackapi/planetstack/views/roles.py
index c6cecd7..baee5cb 100644
--- a/plstackapi/planetstack/views/roles.py
+++ b/plstackapi/planetstack/views/roles.py
@@ -40,7 +40,7 @@
roles = get_roles(data['auth'], {'role_id': pk})
if not roles:
return Response(status=status.HTTP_404_NOT_FOUND)
- serializer = RoleSerializer(data=role)
+ serializer = RoleSerializer(data=role[0])
return Response(serializer.data)
def put(self, request, pk, format=None):