Browse Source

各种修改bug

pull/2/head
guanghongwei 10 years ago
parent
commit
7f132e100f
  1. 6
      webroot/AutoSa/AutoSa/views.py
  2. 2
      webroot/AutoSa/templates/chgGroup.html

6
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:

2
webroot/AutoSa/templates/chgGroup.html

@ -16,7 +16,7 @@
{% endif %}
<div class="form-group">
<div class="col-sm-4">
<input type="text" id="oldname" name="oldname" class="form-control" value="{{ group.id }}" hidden="hidden">
<input type="text" id="id" name="id" value="{{ group.id }}" hidden="hidden">
</div>
</div>
<div class="form-group">

Loading…
Cancel
Save