From 9f8cf21bf1814d30f6880ad56e06a3c3faadd8ed Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 25 Jul 2023 11:17:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6after=5Fbulk=5Fupdate=E6=94=BE=E5=9C=A8=E4=BA=8B?= =?UTF-8?q?=E5=8A=A1=E4=B8=AD=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/utils/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/utils/mixins.py b/apps/utils/mixins.py index e48fbcc8..2f67a5be 100755 --- a/apps/utils/mixins.py +++ b/apps/utils/mixins.py @@ -129,7 +129,7 @@ class BulkUpdateModelMixin(UpdateModelMixin): raise ValidationError(err_dict) self.perform_update(sr) # 用自带的更新,可能需要做其他操作 objs.append(sr.data) - self.after_bulk_update(objs) + self.after_bulk_update(objs) else: raise ParseError('提交数据非列表') return Response(objs)