mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复查询授权时额外查询platform的问题
parent
0379e5160c
commit
44db0e8a5d
|
@ -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