fix
This commit is contained in:
parent
dbc50e39f9
commit
a706c89f0e
|
@ -499,11 +499,12 @@ class ModifyAnnotationView(View):
|
|||
# 把之前的is_latest设置为0
|
||||
annotation.is_latest = 0
|
||||
annotation.save()
|
||||
anno_content = get_currentfile_QuestionAnswerComment_anno(file,content)
|
||||
anno_content = annotation.content
|
||||
return HttpResponse(json.dumps({"status": "success", "msg":"修改成功","anno_content":anno_content}), content_type='application/json')
|
||||
else:
|
||||
return HttpResponse(json.dumps({"status": "fail", "msg":"修改失败"}), content_type='application/json')
|
||||
except:
|
||||
except:
|
||||
print(111)
|
||||
return HttpResponse('{"status":"fail","msg":"修改失败"}', content_type='application/json')
|
||||
|
||||
|
||||
|
@ -1426,4 +1427,4 @@ class GetProjectTreeView(View):
|
|||
return HttpResponse(json.dumps({"status": "success","project_jstree":project_jstree}), content_type='application/json')
|
||||
except:
|
||||
return HttpResponse(json.dumps({"status": "fail"}), content_type='application/json')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue