mirror of https://github.com/openspug/spug
F 修复自定义发布申请编辑报错的问题
parent
3693144ded
commit
dfbe1bf426
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue