Unverified Commit d8ee6d60 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #3110 from jumpserver/dev

[Update] 修改nodes
parents fff9f319 a315df29
...@@ -211,7 +211,8 @@ class AssetsAmountMixin: ...@@ -211,7 +211,8 @@ class AssetsAmountMixin:
cached = cache.get(cache_key) cached = cache.get(cache_key)
if cached is not None: if cached is not None:
return cached 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 return assets_amount
@assets_amount.setter @assets_amount.setter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment