Unverified Commit 90890591 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #2827 from jumpserver/dev_bai

[Update] 修改资产使用patch方法更新时页面不提示messages信息
parents bb1a9412 3da43bf0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment