From 90f078a0f8dca32a7976268fcdfa474687fa66e9 Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Sat, 24 Jan 2015 14:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jumpserver/templatetags/mytags.py | 1 + templates/jperm/perm_host.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jumpserver/templatetags/mytags.py b/jumpserver/templatetags/mytags.py index b00016220..c603cfa0b 100644 --- a/jumpserver/templatetags/mytags.py +++ b/jumpserver/templatetags/mytags.py @@ -47,6 +47,7 @@ def bool2str(value): else: return u'否' + @register.filter(name='perm_count') def perm_count(user_id): user = User.objects.get(int(user_id)) diff --git a/templates/jperm/perm_host.html b/templates/jperm/perm_host.html index d2f8753b0..974c45fea 100644 --- a/templates/jperm/perm_host.html +++ b/templates/jperm/perm_host.html @@ -44,7 +44,7 @@ - {% for group in contacts.object_list %} + {% for user in contacts.object_list %} {{ user.username }} {{ user.name }}