Commit 34b78825 authored by guanghongwei's avatar guanghongwei

ÐÞ¸ÄPermssion --> Perm

parent d7d988b0
......@@ -51,4 +51,4 @@ def bool2str(value):
@register.filter(name='perm_count')
def perm_count(user_id):
user = User.objects.get(int(user_id))
return user.permission_set.all().count()
\ No newline at end of file
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