From 44db0e8a5de7e814b5f4dc499472a0dd8cfff6e1 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 20 Apr 2020 16:56:47 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E6=97=B6=E9=A2=9D=E5=A4=96=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?platform=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/models/asset.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/assets/models/asset.py b/apps/assets/models/asset.py index 39ea8420f..6b5e716e0 100644 --- a/apps/assets/models/asset.py +++ b/apps/assets/models/asset.py @@ -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):