mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-19 01:45:27 +00:00
@@ -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
|
||||||
|
Reference in New Issue
Block a user