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):
|
||||
# def get_queryset(self):
|
||||
# return super().get_queryset().annotate(
|
||||
# platform_base=models.F('platform__base')
|
||||
# )
|
||||
pass
|
||||
def get_queryset(self):
|
||||
return super().get_queryset().annotate(
|
||||
platform_base=models.F('platform__base')
|
||||
)
|
||||
|
||||
|
||||
class AssetQuerySet(models.QuerySet):
|
||||
|
|
Loading…
Reference in New Issue