Commit c424cad2 authored by ibuler's avatar ibuler

bugfix

parent 16ec34c4
...@@ -670,8 +670,8 @@ def addIDC(request): ...@@ -670,8 +670,8 @@ def addIDC(request):
if request.method == 'POST': if request.method == 'POST':
idc_name = request.POST.get('name') idc_name = request.POST.get('name')
if idc_name: if idc_name:
group = Group(name=idc_name) idc = IDC(name=idc_name)
group.save() idc.save()
msg = u'%s IDC添加成功' % idc_name msg = u'%s IDC添加成功' % idc_name
else: else:
error = u'不能为空' 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