From 3c8a9bab0cb09916c40fe42e8d69b7c651b0a241 Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Tue, 27 Jan 2015 17:30:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- juser/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/juser/views.py b/juser/views.py index 04481d089..b110d9b10 100644 --- a/juser/views.py +++ b/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())