mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-16 13:51:26 +01:00
feat: improve transactions list loading time
Prefetch more values and allow them to be cached
This commit is contained in:
1 parent
b2843a1ec1
commit
1140d9c896
2 files changed
+6
No files matched your search
@@ -84,9 +84,12 @@ def transactions_list(request, month: int, year: int):
|
||||
"account__group",
|
||||
"category",
|
||||
"tags",
|
||||
"tags__id",
|
||||
"account__exchange_currency",
|
||||
"account__currency",
|
||||
"installment_plan",
|
||||
"entities__name",
|
||||
"entities__id",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -336,9 +336,12 @@ def transaction_all_list(request):
|
||||
"account__group",
|
||||
"category",
|
||||
"tags",
|
||||
"tags__id",
|
||||
"account__exchange_currency",
|
||||
"account__currency",
|
||||
"installment_plan",
|
||||
"entities__name",
|
||||
"entities__id",
|
||||
).all()
|
||||
|
||||
transactions = default_order(transactions, order=order)
|
||||
|
||||
Reference in new issue
Block a user