From f947a753dbc256bf1ce46eb44e11763f275ea2f0 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 10 Nov 2014 23:36:52 +0800 Subject: [PATCH] bugfix --- webroot/AutoSa/AutoSa/urls.py | 6 +++--- webroot/AutoSa/AutoSa/views.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webroot/AutoSa/AutoSa/urls.py b/webroot/AutoSa/AutoSa/urls.py index 6254b8503..f6ca92c95 100644 --- a/webroot/AutoSa/AutoSa/urls.py +++ b/webroot/AutoSa/AutoSa/urls.py @@ -20,9 +20,9 @@ urlpatterns = patterns('', (r'^showGroup/$', views.showGroup), (r'^addGroup/$', views.addGroup), (r'^chgGroup/$', views.chgGroup), - (r'^showIDC/$', views.showGroup), - (r'^addIDC/$', views.addGroup), - (r'^chgIDC/$', views.chgGroup), + (r'^showIDC/$', views.showIDC), + (r'^addIDC/$', views.addIDC), + (r'^chgIDC/$', views.chgIDC), (r'^showSudo/$', views.showSudo), (r'^chgSudo/$', views.chgSudo), (r'^showAssets/$', views.showAssets), diff --git a/webroot/AutoSa/AutoSa/views.py b/webroot/AutoSa/AutoSa/views.py index 901dc4955..21b0ae836 100644 --- a/webroot/AutoSa/AutoSa/views.py +++ b/webroot/AutoSa/AutoSa/views.py @@ -596,7 +596,7 @@ def chgGroup(request): error = '' msg = '' if request.method == 'GET': - group_id = request.GET.filter('id', None) + group_id = request.GET.get('id', None) if group_id: group = Group.objects.get(id=group_id) else: