Commit 8738b517 authored by guanghongwei's avatar guanghongwei

--broken encoding: IBM420_ltr

parent 34b78825
...@@ -50,5 +50,5 @@ def bool2str(value): ...@@ -50,5 +50,5 @@ def bool2str(value):
@register.filter(name='perm_count') @register.filter(name='perm_count')
def perm_count(user_id): 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() return user.perm_set.all().count()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment