F 修复发布驳回再提交触发的webhook通知状态值不正确的问题

pull/494/head
vapao 2022-05-17 23:23:26 +08:00
parent 05a93dd439
commit 64987edf50
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ 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'
DeployRequest.objects.filter(pk=form.id).update(created_by=request.user, reason=None, **form)
req.update_by_dict(created_by=request.user, reason=None, **form)
else:
req = DeployRequest.objects.create(created_by=request.user, **form)
is_required_notify = deploy.is_audit