Commit 6b91d4fc authored by Rafal's avatar Rafal

change for data

parent 1838a321
...@@ -40,6 +40,8 @@ class APIViewSet(viewsets.ModelViewSet): ...@@ -40,6 +40,8 @@ class APIViewSet(viewsets.ModelViewSet):
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[0])
object.source = data
return [object]
return Response(data=data, content_type="application/json") return Response(data=data, content_type="application/json")
def get_queryset(self): def get_queryset(self):
......
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