diff --git a/test_server/crm/views.py b/test_server/crm/views.py index 3a1dec5..da3da27 100644 --- a/test_server/crm/views.py +++ b/test_server/crm/views.py @@ -664,7 +664,7 @@ class WxphoneRegister(APIView): if request.user.role.name =='游客': request.user.role = ConsumerRole.objects.get(name='注册用户') if not request.user.workscope: - request.user.workscope = WorkScope.objects.all().first() + request.user.workscope = WorkScope.objects.get(name='非医学Ⅲ类') request.user.save() return Response(status=status.HTTP_200_OK)