修改bug

pull/6/head
guanghongwei 2015-01-24 15:07:14 +08:00
parent 34b78825d2
commit 8738b517cc
1 changed files with 1 additions and 1 deletions

View File

@ -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()