perf: applet account select

This commit is contained in:
ibuler
2025-04-16 16:35:49 +08:00
committed by Eric_Lee
parent fa70fb2921
commit 1ee70af93d
5 changed files with 105 additions and 52 deletions

View File

@@ -146,7 +146,7 @@ class BaseAssetViewSet(OrgBulkModelViewSet):
def paginate_queryset(self, queryset):
page = super().paginate_queryset(queryset)
page = Asset.compute_accounts_amount(page)
page = Asset.compute_all_accounts_amount(page)
return page
def create(self, request, *args, **kwargs):