From 7f132e100f5213bfe66bf14d8abd72418d318376 Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Fri, 3 Oct 2014 22:32:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=8D=9A=E5=8B=AD=EE=9D=92=E6=B7=87=EE=86=BD?= =?UTF-8?q?=E6=95=BCbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webroot/AutoSa/AutoSa/views.py | 6 +++--- webroot/AutoSa/templates/chgGroup.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webroot/AutoSa/AutoSa/views.py b/webroot/AutoSa/AutoSa/views.py index 79dd52a67..533b59a71 100644 --- a/webroot/AutoSa/AutoSa/views.py +++ b/webroot/AutoSa/AutoSa/views.py @@ -561,11 +561,11 @@ def chgGroup(request): error = '' msg = '' if request.method == 'GET': - group_id = request.GET.get(id) + group_id = request.GET.get('id') group = Group.objects.get(id=group_id) else: - group_id = request.POST.get(id) - group_name = request.POST.get(name) + group_id = request.POST.get('id') + group_name = request.POST.get('name') if not group_name: error = u'不能为空' else: diff --git a/webroot/AutoSa/templates/chgGroup.html b/webroot/AutoSa/templates/chgGroup.html index f9cae1ec5..ae44b6cc0 100644 --- a/webroot/AutoSa/templates/chgGroup.html +++ b/webroot/AutoSa/templates/chgGroup.html @@ -16,7 +16,7 @@ {% endif %}
- +