diff --git a/accounting/templates/accounting/transactions/expense/form.html b/accounting/templates/accounting/transactions/expense/form.html index 77d8a97..c460a03 100644 --- a/accounting/templates/accounting/transactions/expense/form.html +++ b/accounting/templates/accounting/transactions/expense/form.html @@ -38,6 +38,13 @@ First written: 2020/7/23 {% include "accounting/include/summary-helper.html" %} +{% for message in item.non_field_errors %} +
+ + {{ _("Error:")|force_escape }} {{ message }} +
+{% endfor %} +
diff --git a/accounting/templates/accounting/transactions/income/form.html b/accounting/templates/accounting/transactions/income/form.html index 27458f8..e5f161a 100644 --- a/accounting/templates/accounting/transactions/income/form.html +++ b/accounting/templates/accounting/transactions/income/form.html @@ -38,6 +38,13 @@ First written: 2020/7/23 {% include "accounting/include/summary-helper.html" %} +{% for message in item.non_field_errors %} +
+ + {{ _("Error:")|force_escape }} {{ message }} +
+{% endfor %} +
diff --git a/accounting/templates/accounting/transactions/transfer/form.html b/accounting/templates/accounting/transactions/transfer/form.html index 525e14a..18725ed 100644 --- a/accounting/templates/accounting/transactions/transfer/form.html +++ b/accounting/templates/accounting/transactions/transfer/form.html @@ -38,6 +38,13 @@ First written: 2020/7/23 {% include "accounting/include/summary-helper.html" %} +{% for message in item.non_field_errors %} +
+ + {{ _("Error:")|force_escape }} {{ message }} +
+{% endfor %} +