Merge pull request #2827 from jumpserver/dev_bai

[Update] 修改资产使用patch方法更新时页面不提示messages信息
pull/2833/head
BaiJiangJie 6 years ago committed by GitHub
commit 908905918e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -224,7 +224,7 @@ class ApiMessageMixin:
def dispatch(self, request, *args, **kwargs):
resp = super().dispatch(request, *args, **kwargs)
if request.method.lower() in ("get", "delete"):
if request.method.lower() in ("get", "delete", "patch"):
return resp
if resp.status_code >= 400:
return resp

Loading…
Cancel
Save