Commit 2254e82b authored by guanghongwei's avatar guanghongwei

ʾĬϵgroup

parent 30837940
...@@ -259,7 +259,7 @@ def user_edit(request): ...@@ -259,7 +259,7 @@ def user_edit(request):
ssh_key_pwd1 = user.ssh_key_pwd1 ssh_key_pwd1 = user.ssh_key_pwd1
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.filter(type='M')
groups_str = ' '.join([str(group.id) for group in groups]) groups_str = ' '.join([str(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
......
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