perf: remove gather model (#9246)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-12-27 17:45:41 +08:00
committed by GitHub
parent 0328fd1bb0
commit c81f36cc27
17 changed files with 77 additions and 128 deletions

View File

@@ -15,7 +15,7 @@ from .serializers import (
from users.models import User, UserGroup
from assets.models import (
Asset, Domain, Label, Node,
CommandFilter, CommandFilterRule, GatheredUser
CommandFilter, CommandFilterRule
)
from perms.models import AssetPermission
from orgs.utils import current_org, tmp_to_root_org
@@ -28,8 +28,7 @@ logger = get_logger(__file__)
# 部分 org 相关的 model需要清空这些数据之后才能删除该组织
org_related_models = [
User, UserGroup, Asset, Label, Domain, Node, Label,
CommandFilter, CommandFilterRule, GatheredUser,
AssetPermission,
CommandFilter, CommandFilterRule, AssetPermission,
]