From 35c4d5434d30262fbe1792f613d55aaf9fd9b7c2 Mon Sep 17 00:00:00 2001 From: raja <1647193241@qq.com> Date: Sat, 7 Dec 2024 16:59:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=81=E6=9C=89=E5=8C=96=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=20--story=3D119894675?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 去除后台任务不补充通用字段 --- src/backend/core/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/backend/core/models.py b/src/backend/core/models.py index 6e391b8c..e49f0592 100644 --- a/src/backend/core/models.py +++ b/src/backend/core/models.py @@ -151,10 +151,6 @@ def save(self, *args, **kwargs): non-SQL backends), respectively. Normally, they should not be set. """ - # 后台任务不处理 - if is_backend(): - return super().save(*args, **kwargs) - operator = get_request_username() if not self.created_by: self.created_by = operator