From a5f4a10fca42166f9c8bb6797c7ab3c06ab00540 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 16 May 2023 10:55:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B3=A8=E5=86=8C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=8D=E7=BB=99=E5=B7=A5=E4=BD=9C=E7=B1=BB=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_server/crm/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_server/crm/views.py b/test_server/crm/views.py index 4ef4eb1..5f35a32 100644 --- a/test_server/crm/views.py +++ b/test_server/crm/views.py @@ -674,8 +674,8 @@ class WxphoneRegister(APIView): request.user.name = data.get('name', '未知') if request.user.role.name =='游客': request.user.role = ConsumerRole.objects.get(name='注册用户') - if not request.user.workscope: - request.user.workscope = WorkScope.objects.filter(sortnum=1).order_by('id').first() + # if not request.user.workscope: + # request.user.workscope = WorkScope.objects.filter(sortnum=1).order_by('id').first() request.user.save() return Response(status=status.HTTP_200_OK, data=ConsumerDetailSerializer(instance=request.user).data)