Commit e9268bad authored by Rafal's avatar Rafal

change for data

parent 8a5e59b5
......@@ -37,7 +37,9 @@ class APIViewSet(viewsets.ModelViewSet):
name = "lib.api.{0}".format(object.source.strip())
mod = __import__(name, fromlist=['API'])
api = mod.API(request)
return Response(data=api.execute(function)[0], content_type="application/json")
data = api.execute(function)
print data
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