mirror of https://github.com/jumpserver/jumpserver
Merge pull request #3925 from jumpserver/bugfix_many_sqlquery_perm_asset
[Bugfix] 修复查询授权时额外查询platform的问题pull/3929/head
commit
c16a986c4b
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue