修改tag名称 perm_total -> perm_count

pull/6/head
guanghongwei 2015-01-24 14:49:38 +08:00
parent df82c17c1c
commit aa7e8c0ed4
1 changed files with 2 additions and 2 deletions

View File

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