Renamed the view txn_edit() to txn_form() in the accounting application.

This commit is contained in:
依瑪貓 2020-08-09 12:19:11 +08:00
parent dcf895c22b
commit 1a6f36af0b
2 changed files with 3 additions and 3 deletions

View File

@ -77,13 +77,13 @@ urlpatterns = [
path("search", path("search",
views.search, name="search"), views.search, name="search"),
path("transactions/<txn-type:txn_type>/create", path("transactions/<txn-type:txn_type>/create",
views.txn_edit, name="transactions.create"), views.txn_form, name="transactions.create"),
path("transactions/<txn-type:txn_type>/store", path("transactions/<txn-type:txn_type>/store",
views.txn_store, name="transactions.store"), views.txn_store, name="transactions.store"),
path("transactions/<txn-type:txn_type>/<txn:txn>", path("transactions/<txn-type:txn_type>/<txn:txn>",
views.TransactionView.as_view(), name="transactions.detail"), views.TransactionView.as_view(), name="transactions.detail"),
path("transactions/<txn-type:txn_type>/<txn:txn>/edit", path("transactions/<txn-type:txn_type>/<txn:txn>/edit",
views.txn_edit, name="transactions.edit"), views.txn_form, name="transactions.edit"),
path("transactions/<txn-type:txn_type>/<txn:txn>/update", path("transactions/<txn-type:txn_type>/<txn:txn>/update",
views.txn_store, name="transactions.update"), views.txn_store, name="transactions.update"),
path("transactions/<txn:txn>/delete", path("transactions/<txn:txn>/delete",

View File

@ -817,7 +817,7 @@ class TransactionView(DetailView):
@require_GET @require_GET
@login_required @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. """The view to edit an accounting transaction.
Args: Args: