Commit e2e172ae authored by 杨成林's avatar 杨成林

Merge branch 'ycl/kyc_pictorial' into 'test'

fix

See merge request alpha/sun!221
parents dfda2032 024c17d1
......@@ -49,13 +49,16 @@ class WordParentUpdateView(APIView):
data = {}
data["id"] = request.POST.get('id', None)
data["name"] = request.POST.get('name', None)
data["children_words"] = json.loads(request.POST.get('children_words', '[]'))
children_words = request.POST.get('children_words')
data["children_words"] = json.loads(children_words) if children_words else []
data["content_ad"] = request.POST.get('content_ad', None)
data["makeup_ad"] = request.POST.get('makeup_ad', None)
data["dress_ad"] = request.POST.get('dress_ad', None)
data["gender"] = request.POST.get('gender', None)
data["makeup_pictorial_ids"] = json.loads(request.POST.get('makeup_pictorial_ids', []))
data["clothing_pictorial_ids"] = json(request.POST.get('clothing_pictorial_ids', []))
makeup_pictorial_ids = request.POST.get('makeup_pictorial_ids')
clothing_pictorial_ids = request.POST.get('clothing_pictorial_ids')
data["makeup_pictorial_ids"] = json.loads(makeup_pictorial_ids) if makeup_pictorial_ids else []
data["clothing_pictorial_ids"] = json(clothing_pictorial_ids) if clothing_pictorial_ids else []
data = self.rpc['venus/sun/word_parent/edit'](data=data).unwrap()
if not data:
......
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