modify cmd_edit bug

pull/11/head
ibuler 2015-06-11 14:01:49 +08:00
parent 95cc2830c8
commit 7cb4ff97ea
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ def cmd_edit(request):
cmd_group_id = request.POST.get('cmd_group_id')
name = request.POST.get('name')
dept_id = request.POST.get('dept_id')
cmd = ','.join(request.POST.get('cmd').split())
cmd = ','.join(request.POST.get('cmd').split('\n'))
comment = request.POST.get('comment')
cmd_group = CmdGroup.objects.filter(id=cmd_group_id)