From 38c65dbea889cbec400f61073557b37e66ca6f3e Mon Sep 17 00:00:00 2001 From: ibuler Date: Sun, 15 Nov 2015 23:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=8E=BB=E6=8E=89=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E6=88=B7=E7=9A=84get.asset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jumpserver/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jumpserver/views.py b/jumpserver/views.py index 00f709ffd..aec46a2a5 100644 --- a/jumpserver/views.py +++ b/jumpserver/views.py @@ -80,7 +80,8 @@ def index_cu(request): user = get_object(User, id=user_id) login_types = {'L': 'LDAP', 'M': 'MAP'} username = user.username - posts = user.get_asset() + # posts = user.get_asset() + posts = User.objects.all() host_count = len(posts) new_posts = [] post_five = []