Commit 26f04eba authored by zhongshangwu's avatar zhongshangwu

fix params

parent c51f2ce8
...@@ -17,7 +17,7 @@ class LaboratoryView(APIView): ...@@ -17,7 +17,7 @@ class LaboratoryView(APIView):
def post(self, request): def post(self, request):
laboratory_id = request.POST.get('laboratory_id', None) laboratory_id = request.POST.get('id', None)
title = request.POST.get("title", "") title = request.POST.get("title", "")
order = request.POST.get("order", "") order = request.POST.get("order", "")
image_url = request.POST.get("image_url", "") image_url = request.POST.get("image_url", "")
...@@ -40,7 +40,7 @@ class LaboratoryDeleteView(APIView): ...@@ -40,7 +40,7 @@ class LaboratoryDeleteView(APIView):
def post(self, request): def post(self, request):
laboratory_id = request.POST.get('laboratory_id', None) laboratory_id = request.POST.get('id', None)
data = self.rpc['venus/sun/laboratory/delete']( data = self.rpc['venus/sun/laboratory/delete'](
laboratory_id=laboratory_id laboratory_id=laboratory_id
......
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