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 %}