Commit 3c8a9bab authored by guanghongwei's avatar guanghongwei

޸ɾû

parent c782b46f
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment