Commit 6d02e9db authored by 王浩's avatar 王浩

Merge branch 'xujunpeng/hotfix/fix_is_tcc' into 'master'

fix bug 增加默认值

See merge request alpha/sun!133
parents 7f2cb548 0c7cbf7d
...@@ -72,7 +72,7 @@ class UserUpdateOrCreate(APIView): ...@@ -72,7 +72,7 @@ class UserUpdateOrCreate(APIView):
'phone': request.POST.get('phone'), 'phone': request.POST.get('phone'),
'email': request.POST.get('email'), 'email': request.POST.get('email'),
'gender': request.POST.get('gender'), 'gender': request.POST.get('gender'),
'is_tcc': int(request.POST.get('is_tcc')), 'is_tcc': int(request.POST.get('is_tcc', 0)),
} }
try: try:
......
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