[Bugfix] 修复查询授权时额外查询platform的问题

pull/3925/head
ibuler 5 years ago
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…
Cancel
Save