mirror of https://github.com/jumpserver/jumpserver
修改删除用户
parent
c782b46f32
commit
3c8a9bab0c
|
@ -245,6 +245,8 @@ def user_del(request):
|
|||
return HttpResponseRedirect('/')
|
||||
user = User.objects.get(id=user_id)
|
||||
user.delete()
|
||||
group = UserGroup.objects.get(name=user.username)
|
||||
group.delete()
|
||||
return HttpResponseRedirect('/juser/user_list/', locals())
|
||||
|
||||
|
||||
|
|
Loading鈥
Reference in New Issue