feat: 批量更新时after_bulk_update放在事务中处理

This commit is contained in:
caoqianming 2023-07-25 11:17:34 +08:00
parent 7fde7148bf
commit 9f8cf21bf1
1 changed files with 1 additions and 1 deletions

View File

@ -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)