Browse Source

Merge branch 'dev' of git.coding.net:jumpserver/Jumpserver into dev

pull/26/head
ibuler 9 years ago
parent
commit
71ef4b079a
  1. 7
      juser/views.py

7
juser/views.py

@ -315,9 +315,10 @@ def user_del(request):
for user_id in user_id_list: for user_id in user_id_list:
user = get_object(User, id=user_id) user = get_object(User, id=user_id)
if user: if user:
assets = user_permed(user) # TODO: annotation by liuzheng, because useless for me
result = _public_perm_api({'type': 'del_user', 'user': user, 'asset': assets}) # assets = user_permed(user)
print result # result = _public_perm_api({'type': 'del_user', 'user': user, 'asset': assets})
# print result
user.delete() user.delete()
return HttpResponse('删除成功') return HttpResponse('删除成功')

Loading…
Cancel
Save