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'不能为空'
......
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