update

FFIB 17 小時之前
父節點
當前提交
c497c2fb27
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/lensman_mp_views.py

+ 1 - 1
api/lensman_mp_views.py

@@ -25,7 +25,7 @@ def lensman_register(request):
25 25
         'identity_card_number': identity_card_number,
26 26
     }
27 27
 
28
-    lensman, _ = LensmanInfo.objects.update_or_create(user_id=user_id, defaults=fields)
28
+    lensman, _ = LensmanInfo.objects.update_or_create(user_id=user_id, defaults=fields, status=True, lensman_status=LensmanInfo.UNVERIFIED)
29 29
 
30 30
     return response(200, 'Submit Success', u'提交成功', data=lensman.data)
31 31