Commit 9af9a91a authored by Rafal's avatar Rafal

repair

parent bb2cb94d
......@@ -31,7 +31,7 @@ class APIViewSet(viewsets.ModelViewSet):
@detail_route()
def xd(self,request, pk=None):
api = get_object_or_404(APIViewSet.queryset, pk=pk)
api_data = api.data
api_data = json.dumps(api.data)
return Response(status=rest_framework.status.HTTP_200_OK, data=api_data)
@staticmethod
......
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