From 1d9a8a040172dd71ce622a616e1ab3b75d9020c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 7 Aug 2020 21:28:28 +0800 Subject: [PATCH] Moved the template accounting/accounts/index.html to accounting/account_list.html to follow the default template name in the accounting application. --- .../accounting/{accounts/index.html => account_list.html} | 0 accounting/views.py | 1 - 2 files changed, 1 deletion(-) rename accounting/templates/accounting/{accounts/index.html => account_list.html} (100%) diff --git a/accounting/templates/accounting/accounts/index.html b/accounting/templates/accounting/account_list.html similarity index 100% rename from accounting/templates/accounting/accounts/index.html rename to accounting/templates/accounting/account_list.html diff --git a/accounting/views.py b/accounting/views.py index b6e72bb..88dfd2d 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -1047,7 +1047,6 @@ def txn_sort(request, date): class AccountListView(ListView): """The view to list the accounts.""" queryset = Account.objects.order_by("code") - template_name = "accounting/accounts/index.html" @require_GET