Skip to content

Commit 927b12a

Browse files
committed
refactor: delete dbmodelManage
1 parent 643200c commit 927b12a

File tree

7 files changed

+2
-67
lines changed

7 files changed

+2
-67
lines changed

apps/common/models/__init__.py

Whitespace-only changes.

apps/common/models/db_model_manage.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

apps/common/models/handle/__init__.py

Whitespace-only changes.

apps/common/models/handle/base_handle.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

apps/common/models/handle/impl/__init__.py

Whitespace-only changes.

apps/common/models/handle/impl/default_base_model_handle.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/common/utils/common.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
from django.utils.translation import gettext as _
2222
from pydub import AudioSegment
2323

24+
from ..database_model_manage.database_model_manage import DatabaseModelManage
2425
from ..exception.app_exception import AppApiException
25-
from ..models.db_model_manage import DBModelManage
26-
2726

2827
def password_encrypt(row_password):
2928
"""
@@ -237,7 +236,7 @@ def query_params_to_single_dict(query_params: Dict):
237236
def valid_license(model=None, count=None, message=None):
238237
def inner(func):
239238
def run(*args, **kwargs):
240-
xpack_cache = DBModelManage.get_model('xpack_cache')
239+
xpack_cache = DatabaseModelManage.get_model('xpack_cache')
241240
is_license_valid = xpack_cache.get('XPACK_LICENSE_IS_VALID', False) if xpack_cache is not None else False
242241
record_count = QuerySet(model).count()
243242

0 commit comments

Comments
 (0)