修改bug

pull/6/head
guanghongwei 2015-01-24 14:53:18 +08:00
parent 3f0e8fcc2d
commit 90f078a0f8
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ def bool2str(value):
else:
return u''
@register.filter(name='perm_count')
def perm_count(user_id):
user = User.objects.get(int(user_id))

View File

@ -44,7 +44,7 @@
</tr>
</thead>
<tbody>
{% for group in contacts.object_list %}
{% for user in contacts.object_list %}
<tr class="gradeX">
<td class="text-center"> {{ user.username }} </td>
<td class="text-center"> {{ user.name }} </td>