修改bug

pull/6/head
ibuler 2015-01-23 23:45:55 +08:00
parent 54d659edb6
commit c55c77e349
2 changed files with 3 additions and 1 deletions

View File

@ -219,6 +219,8 @@ def user_edit(request):
ssh_key_pwd1 = request.POST.get('ssh_key_pwd1', None)
is_active = request.POST.get('is_active', '1')
ldap_pwd = gen_rand_pwd(16)
all_group = UserGroup.objects.all()
user_role = {'SU': u'超级管理员', 'GA': u'组管理员', 'CU': u'普通用户'}
if username:
user = User.objects.get(username=username)

View File

@ -46,7 +46,7 @@
</tr>
<tr class="gradeX">
<td class="text-center">属组</td>
<td class="text-center">{{ user.id|get_role }}</td>
<td class="text-center">{{ user.username|groups_str }}</td>
</tr>
<tr class="gradeX">
<td class="text-center">Email</td>