diff --git a/jasset/views.py b/jasset/views.py index 4a9891594..7ccf596b1 100644 --- a/jasset/views.py +++ b/jasset/views.py @@ -344,7 +344,7 @@ def add_group(request): emg = u'该主机组已存在!' return render_to_response('jasset/group_add.html', locals(), context_instance=RequestContext(request)) else: - BisGroup.objects.create(name=j_group, comment=j_comment, type='A') + BisGroup.objects.create(name=j_group, comment=j_comment) group = BisGroup.objects.get(name=j_group) group.dept = j_dept for host in j_hosts: