From f1db5d6f443d3b4d2ac25deb5ad1b434b6215306 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 26 Dec 2023 12:42:20 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=87=8D=E5=86=99GenericForeignKey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jumpserver/__init__.py | 2 +- apps/jumpserver/rewriting/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/jumpserver/__init__.py b/apps/jumpserver/__init__.py index 8b1378917..ff4333aa4 100644 --- a/apps/jumpserver/__init__.py +++ b/apps/jumpserver/__init__.py @@ -1 +1 @@ - +from jumpserver.rewriting import db # noqa 采用猴子补丁的方式,重写atomic ForeignKey OneToOneField diff --git a/apps/jumpserver/rewriting/__init__.py b/apps/jumpserver/rewriting/__init__.py index 72949abe2..139597f9c 100644 --- a/apps/jumpserver/rewriting/__init__.py +++ b/apps/jumpserver/rewriting/__init__.py @@ -1,2 +1,2 @@ -from . import db +