feat: add account group to item

This commit is contained in:
Herculino Trotta
2024-10-21 15:49:03 -03:00
parent 2b1fdd49e5
commit 3b4061c1b8
2 changed files with 2 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ def transactions_list(request, month: int, year: int):
.order_by("date_order", "date", "id") .order_by("date_order", "date", "id")
.prefetch_related( .prefetch_related(
"account", "account",
"account__group",
"category", "category",
"tags", "tags",
"account__exchange_currency", "account__exchange_currency",

View File

@@ -84,7 +84,7 @@
color="grey"></c-amount.display> color="grey"></c-amount.display>
{% endif %} {% endif %}
{% endwith %} {% endwith %}
<div>{{ transaction.account.name }}</div> <div>{% if transaction.account.group %}{{ transaction.account.group.name }} • {% endif %}{{ transaction.account.name }}</div>
</div> </div>
<div> <div>
{# Item actions#} {# Item actions#}