Browse Source

不显示默认的group

pull/6/head
guanghongwei 10 years ago
parent
commit
2254e82bf0
  1. 2
      juser/views.py

2
juser/views.py

@ -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

Loading鈥
Cancel
Save