def retrieve(self, request, pk='root'):
     return Response(extractor(pk))
 def list(self, request):
     return Response(extractor('root'))
示例#3
0
 def retrieve(self, request, polygon_id='root'):
     return Response(extractor(polygon_id))
示例#4
0
 def list(self, request):
     return Response(extractor('root'))
示例#5
0
 def retrieve(self, request, polygon_id='root'):
     return Response(extractor(polygon_id))
示例#6
0
def get_polygons_tree(request, polygon_id):
    data = mark_safe(json.dumps(extractor(polygon_id)))
    return HttpResponse(data, content_type='application/json')