From 3da43bf01d0e49983e73c64e29c0d7d7205d43bc Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Fri, 21 Jun 2019 12:01:18 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E4=BD=BF=E7=94=A8patch=E6=96=B9=E6=B3=95=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6=E9=A1=B5=E9=9D=A2=E4=B8=8D=E6=8F=90=E7=A4=BAmessages?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/mixins.py b/apps/common/mixins.py index 694e78d50..b46673cd6 100644 --- a/apps/common/mixins.py +++ b/apps/common/mixins.py @@ -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