From 1a6f36af0b899cb1a7fcd15ee273dbbc166225b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 9 Aug 2020 12:19:11 +0800 Subject: [PATCH] Renamed the view txn_edit() to txn_form() in the accounting application. --- accounting/urls.py | 4 ++-- accounting/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/accounting/urls.py b/accounting/urls.py index ab85850..f315f39 100644 --- a/accounting/urls.py +++ b/accounting/urls.py @@ -77,13 +77,13 @@ urlpatterns = [ path("search", views.search, name="search"), path("transactions//create", - views.txn_edit, name="transactions.create"), + views.txn_form, name="transactions.create"), path("transactions//store", views.txn_store, name="transactions.store"), path("transactions//", views.TransactionView.as_view(), name="transactions.detail"), path("transactions///edit", - views.txn_edit, name="transactions.edit"), + views.txn_form, name="transactions.edit"), path("transactions///update", views.txn_store, name="transactions.update"), path("transactions//delete", diff --git a/accounting/views.py b/accounting/views.py index 55b0999..2fdba7b 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -817,7 +817,7 @@ class TransactionView(DetailView): @require_GET @login_required -def txn_edit(request, txn_type, txn=None): +def txn_form(request, txn_type, txn=None): """The view to edit an accounting transaction. Args: