Commit 71d5578f authored by 钟尚武's avatar 钟尚武

Merge branch 'shangwu/feature-laboratory' into 'test'

fix params

See merge request !390
parents aba3517a 26f04eba
...@@ -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