Commit 327f3d6d authored by ibuler's avatar ibuler

修改bug

parent 49dcdf3b
...@@ -199,7 +199,7 @@ def user_edit(request): ...@@ -199,7 +199,7 @@ def user_edit(request):
name = user.name name = user.name
all_group = UserGroup.objects.all() all_group = UserGroup.objects.all()
groups = user.user_group.all() groups = user.user_group.all()
groups_str = ' '.join([group.name for group in groups]) groups_str = ' '.join([group.id for group in groups])
user_role = {'SU': u'超级管理员', 'GA': u'组管理员', 'CU': u'普通用户'} user_role = {'SU': u'超级管理员', 'GA': u'组管理员', 'CU': u'普通用户'}
role_post = user.role role_post = user.role
ssh_pwd = user.ssh_pwd ssh_pwd = user.ssh_pwd
......
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