Browse Source

修改删除用户

pull/6/head
guanghongwei 10 years ago
parent
commit
3c8a9bab0c
  1. 2
      juser/views.py

2
juser/views.py

@ -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鈥
Cancel
Save