From d8af81c7d42341be6c1fb7220b293d4afb4d7d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 31 Aug 2020 15:05:11 +0800 Subject: [PATCH] Revised the templates of the transaction details to display the user by the model-specific way instead of the name column in the accounting application. --- .../templates/accounting/transaction_expense_detail.html | 4 ++-- .../templates/accounting/transaction_income_detail.html | 4 ++-- .../templates/accounting/transaction_transfer_detail.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/accounting/templates/accounting/transaction_expense_detail.html b/accounting/templates/accounting/transaction_expense_detail.html index 5b99999..19fe255 100644 --- a/accounting/templates/accounting/transaction_expense_detail.html +++ b/accounting/templates/accounting/transaction_expense_detail.html @@ -181,7 +181,7 @@ First written: 2020/7/23
{{ _("Created by:")|force_escape }}
-
{{ txn.created_by.name }}
+
{{ txn.created_by }}
@@ -191,7 +191,7 @@ First written: 2020/7/23
{{ _("Updated by:")|force_escape }}
-
{{ txn.updated_by.name }}
+
{{ txn.updated_by }}
{% endblock %} diff --git a/accounting/templates/accounting/transaction_income_detail.html b/accounting/templates/accounting/transaction_income_detail.html index 99ea59e..fac24df 100644 --- a/accounting/templates/accounting/transaction_income_detail.html +++ b/accounting/templates/accounting/transaction_income_detail.html @@ -181,7 +181,7 @@ First written: 2020/7/23
{{ _("Created by:")|force_escape }}
-
{{ txn.created_by.name }}
+
{{ txn.created_by }}
@@ -191,7 +191,7 @@ First written: 2020/7/23
{{ _("Updated by:")|force_escape }}
-
{{ txn.updated_by.name }}
+
{{ txn.updated_by }}
{% endblock %} diff --git a/accounting/templates/accounting/transaction_transfer_detail.html b/accounting/templates/accounting/transaction_transfer_detail.html index 1bf7d96..50cb5e6 100644 --- a/accounting/templates/accounting/transaction_transfer_detail.html +++ b/accounting/templates/accounting/transaction_transfer_detail.html @@ -226,7 +226,7 @@ First written: 2020/7/23
{{ _("Created by:")|force_escape }}
-
{{ txn.created_by.name }}
+
{{ txn.created_by }}
@@ -236,7 +236,7 @@ First written: 2020/7/23
{{ _("Updated by:")|force_escape }}
-
{{ txn.updated_by.name }}
+
{{ txn.updated_by }}
{% endblock %}