Commit 3f0e8fcc authored by guanghongwei's avatar guanghongwei

޸tag perm_total -> perm_count

parent aa7e8c0e
...@@ -47,7 +47,7 @@ def bool2str(value): ...@@ -47,7 +47,7 @@ def bool2str(value):
else: else:
return u'否' return u'否'
@register.filter(name='perm_count ') @register.filter(name='perm_count')
def perm_count(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()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment