Browse Source

修改tag名称 perm_total -> perm_count

pull/6/head
guanghongwei 10 years ago
parent
commit
aa7e8c0ed4
  1. 4
      jumpserver/templatetags/mytags.py

4
jumpserver/templatetags/mytags.py

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