Browse Source

ÐÞ¸Äbug

pull/6/head
guanghongwei 10 years ago
parent
commit
8738b517cc
  1. 2
      jumpserver/templatetags/mytags.py

2
jumpserver/templatetags/mytags.py

@ -50,5 +50,5 @@ def bool2str(value):
@register.filter(name='perm_count')
def perm_count(user_id):
user = User.objects.get(int(user_id))
user = User.objects.get(id=int(user_id))
return user.perm_set.all().count()
Loading…
Cancel
Save