Commit 907d93bc authored by ibuler's avatar ibuler

[Update] 还原一些

parent c84df42f
...@@ -211,7 +211,7 @@ class AssetsAmountMixin: ...@@ -211,7 +211,7 @@ 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().only('id').count() assets_amount = self.get_all_assets().count()
self.assets_amount = assets_amount self.assets_amount = assets_amount
return assets_amount return assets_amount
......
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