Commit c424cad2 authored by ibuler's avatar ibuler

bugfix

parent 16ec34c4
......@@ -670,8 +670,8 @@ def addIDC(request):
if request.method == 'POST':
idc_name = request.POST.get('name')
if idc_name:
group = Group(name=idc_name)
group.save()
idc = IDC(name=idc_name)
idc.save()
msg = u'%s IDC添加成功' % idc_name
else:
error = u'不能为空'
......
......@@ -38,7 +38,7 @@
<a href="/addIDC/">添加IDC</a>
<a href="/showIDC/">删除IDC</a>
</div>
</div>
<div class="form-group">
<label for="comment" class="col-sm-2 control-label">备注<span style="color: red"></span></label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment