F 修复自定义发布申请编辑报错的问题

pull/517/head
vapao 2022-06-29 14:07:51 +08:00
parent 3693144ded
commit dfbe1bf426
1 changed files with 2 additions and 1 deletions

View File

@ -316,7 +316,8 @@ def post_request_ext2(request):
if form.id:
req = DeployRequest.objects.get(pk=form.id)
is_required_notify = deploy.is_audit and req.status == '-1'
req.update_by_dict(created_by=request.user, reason=None, **form)
form.update(created_by=request.user, reason=None)
req.update_by_dict(form)
else:
req = DeployRequest.objects.create(created_by=request.user, **form)
is_required_notify = deploy.is_audit