From df2c2fc7d5bb5f39d2fa79d0fc8e3029cc2c15bd Mon Sep 17 00:00:00 2001 From: halcyon <864072399@qq.com> Date: Sat, 21 Mar 2015 12:58:29 +0800 Subject: [PATCH] zhoumo --- jasset/views.py | 2 +- templates/index.html | 10 +++++----- templates/jasset/jlist_ip.html | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/jasset/views.py b/jasset/views.py index a08b3430f..79c415cb3 100644 --- a/jasset/views.py +++ b/jasset/views.py @@ -60,7 +60,7 @@ def f_add_host(ip, port, idc, jtype, group, dept, active, comment, username='', def add_host(request): login_types = {'L': 'LDAP', 'M': 'MAP'} header_title, path1, path2 = u'添加主机', u'资产管理', u'添加主机' - eidc = IDC.objects.all() + eidc = IDC.objects.exclude(name='ALL') if is_super_user(request): edept = DEPT.objects.all() egroup = BisGroup.objects.exclude(name='ALL') diff --git a/templates/index.html b/templates/index.html index 14e55a745..f1d4cc6b8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@