From 65126c1e1fa1dc6cde55719a60400bb530ce9be9 Mon Sep 17 00:00:00 2001 From: vapao Date: Sun, 19 Apr 2020 19:32:09 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E5=B7=B2=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=94=A8=E6=88=B7=E6=89=80=E5=85=B3=E8=81=94=E7=9A=84?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=97=A0=E6=B3=95=E8=A2=AB=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/account/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spug_api/apps/account/views.py b/spug_api/apps/account/views.py index 3b58d75..823d31a 100644 --- a/spug_api/apps/account/views.py +++ b/spug_api/apps/account/views.py @@ -60,6 +60,7 @@ class UserView(View): if user: if user.type == 'ldap': return json_response(error='ldap账户无法删除,请使用禁用功能来禁止该账户访问系统') + user.role_id = None user.deleted_at = human_datetime() user.deleted_by = request.user user.save()