不显示默认的group

pull/6/head
guanghongwei 2015-01-27 18:53:37 +08:00
parent 308379406a
commit 2254e82bf0
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ def user_edit(request):
ssh_key_pwd1 = user.ssh_key_pwd1
name = user.name
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])
user_role = {'SU': u'瓒呯骇绠$悊鍛', 'GA': u'缁勭鐞嗗憳', 'CU': u'鏅氱敤鎴'}
role_post = user.role