Commit 1838a321 authored by Rafal's avatar Rafal

change for data

parent 01dabbef
......@@ -40,8 +40,7 @@ class APIViewSet(viewsets.ModelViewSet):
api = mod.API(request)
data = api.execute(function)
data = json.dumps(data[0])
return data
#return Response(data=data, content_type="application/json")
return Response(data=data, content_type="application/json")
def get_queryset(self):
queryset = API.objects.all()
......
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