From d3dd9d94d37d43fc21d50a7cdba1f3d548338832 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Mon, 16 Nov 2015 14:59:26 +0800 Subject: [PATCH] update --- juser/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/juser/views.py b/juser/views.py index b00f068c9..e5668bc93 100644 --- a/juser/views.py +++ b/juser/views.py @@ -315,9 +315,10 @@ def user_del(request): for user_id in user_id_list: user = get_object(User, id=user_id) if user: - assets = user_permed(user) - result = _public_perm_api({'type': 'del_user', 'user': user, 'asset': assets}) - print result + # TODO: annotation by liuzheng, because useless for me + # assets = user_permed(user) + # result = _public_perm_api({'type': 'del_user', 'user': user, 'asset': assets}) + # print result user.delete() return HttpResponse('删除成功')