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