mirror of https://github.com/jumpserver/jumpserver
修改tag名称 perm_total -> perm_count
parent
aa7e8c0ed4
commit
3f0e8fcc2d
|
@ -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()
|
Loading鈥
Reference in New Issue