Commit fd4b03e8 authored by Rafal's avatar Rafal

change for data

parent c614be06
...@@ -39,7 +39,7 @@ class APIViewSet(viewsets.ModelViewSet): ...@@ -39,7 +39,7 @@ class APIViewSet(viewsets.ModelViewSet):
mod = __import__(name, fromlist=['API']) mod = __import__(name, fromlist=['API'])
api = mod.API(request) api = mod.API(request)
data = api.execute(function) data = api.execute(function)
data = json.dumps(data[0]) data = json.dumps(data)
return data return data
#return Response(data=data, content_type="application/json") #return Response(data=data, content_type="application/json")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment