From 48408cead8a8be771fe82df52f0634582fca0974 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Thu, 30 Jan 2025 00:22:37 -0300 Subject: [PATCH 1/2] fix: 'tags__id' does not resolve to an item that supports prefetching --- app/apps/monthly_overview/views.py | 1 - app/apps/transactions/views/transactions.py | 1 - 2 files changed, 2 deletions(-) diff --git a/app/apps/monthly_overview/views.py b/app/apps/monthly_overview/views.py index cc68231..2945a60 100644 --- a/app/apps/monthly_overview/views.py +++ b/app/apps/monthly_overview/views.py @@ -84,7 +84,6 @@ def transactions_list(request, month: int, year: int): "account__group", "category", "tags", - "tags__id", "account__exchange_currency", "account__currency", "installment_plan", diff --git a/app/apps/transactions/views/transactions.py b/app/apps/transactions/views/transactions.py index b186f41..e195b2f 100644 --- a/app/apps/transactions/views/transactions.py +++ b/app/apps/transactions/views/transactions.py @@ -336,7 +336,6 @@ def transaction_all_list(request): "account__group", "category", "tags", - "tags__id", "account__exchange_currency", "account__currency", "installment_plan", From b5671fcd0e849428049cf4551506cd865984fb42 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Thu, 30 Jan 2025 00:26:07 -0300 Subject: [PATCH 2/2] fix: 'tags__id' does not resolve to an item that supports prefetching --- app/apps/monthly_overview/views.py | 3 +-- app/apps/transactions/views/transactions.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/apps/monthly_overview/views.py b/app/apps/monthly_overview/views.py index 2945a60..01f6414 100644 --- a/app/apps/monthly_overview/views.py +++ b/app/apps/monthly_overview/views.py @@ -87,8 +87,7 @@ def transactions_list(request, month: int, year: int): "account__exchange_currency", "account__currency", "installment_plan", - "entities__name", - "entities__id", + "entities", ) ) diff --git a/app/apps/transactions/views/transactions.py b/app/apps/transactions/views/transactions.py index e195b2f..42502c7 100644 --- a/app/apps/transactions/views/transactions.py +++ b/app/apps/transactions/views/transactions.py @@ -339,8 +339,7 @@ def transaction_all_list(request): "account__exchange_currency", "account__currency", "installment_plan", - "entities__name", - "entities__id", + "entities", ).all() transactions = default_order(transactions, order=order)