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 +