Merge pull request #3110 from jumpserver/dev

[Update] 修改nodes
This commit is contained in:
老广
2019-08-12 19:14:08 +08:00
committed by GitHub

View File

@@ -211,7 +211,8 @@ class AssetsAmountMixin:
cached = cache.get(cache_key)
if cached is not None:
return cached
assets_amount = self.get_all_assets().count()
assets_amount = self.get_all_assets().only('id').count()
self.assets_amount = assets_amount
return assets_amount
@assets_amount.setter