Merge pull request #3925 from jumpserver/bugfix_many_sqlquery_perm_asset

[Bugfix] 修复查询授权时额外查询platform的问题
pull/3929/head
老广 2020-04-20 16:58:14 +08:00 committed by GitHub
commit c16a986c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -41,11 +41,10 @@ def default_node():
class AssetManager(OrgManager): class AssetManager(OrgManager):
# def get_queryset(self): def get_queryset(self):
# return super().get_queryset().annotate( return super().get_queryset().annotate(
# platform_base=models.F('platform__base') platform_base=models.F('platform__base')
# ) )
pass
class AssetQuerySet(models.QuerySet): class AssetQuerySet(models.QuerySet):