From 3f0e8fcc2de33443666ce076255cf43689847a8d Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Sat, 24 Jan 2015 14:50:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9tag=E5=90=8D=E7=A7=B0=20perm?= =?UTF-8?q?=5Ftotal=20->=20perm=5Fcount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jumpserver/templatetags/mytags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jumpserver/templatetags/mytags.py b/jumpserver/templatetags/mytags.py index 3d8b3ee87..b00016220 100644 --- a/jumpserver/templatetags/mytags.py +++ b/jumpserver/templatetags/mytags.py @@ -47,7 +47,7 @@ def bool2str(value): else: return u'否' -@register.filter(name='perm_count ') +@register.filter(name='perm_count') def perm_count(user_id): user = User.objects.get(int(user_id)) return user.permission_set.all().count() \ No newline at end of file