From e5fe13337b78da0957467dbdc6b89a6564471286 Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Sat, 10 Jan 2015 13:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9jasset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jasset/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jasset/views.py b/jasset/views.py index 52a95d32e..a0d7e1c73 100644 --- a/jasset/views.py +++ b/jasset/views.py @@ -7,7 +7,7 @@ from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger -from models import IDC, Asset, Group +from models import IDC, Asset, UserGroup from connect import PyCrypt, KEY @@ -20,7 +20,7 @@ def jadd(request): groups = [] cryptor = PyCrypt(KEY) eidc = IDC.objects.all() - egroup = Group.objects.all() + egroup = UserGroup.objects.all() is_actived = {'active': 1, 'no_active': 0} login_typed = {'LDAP': 'L', 'SSH_KEY': 'S', 'PASSWORD': 'P', 'MAP': 'M'} @@ -40,7 +40,7 @@ def jadd(request): j_idc = IDC.objects.get(name=j_idc) for group in j_group: - c = Group.objects.get(name=group) + c = UserGroup.objects.get(name=group) groups.append(c) if Asset.objects.filter(ip=str(j_ip)):