Merge pull request #3110 from jumpserver/dev

[Update] 修改nodes
pull/3126/head
老广 2019-08-12 19:14:08 +08:00 committed by GitHub
commit d8ee6d6092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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