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",
views.search, name="search"),
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",
views.txn_store, name="transactions.store"),
path("transactions/<txn-type:txn_type>/<txn:txn>",
views.TransactionView.as_view(), name="transactions.detail"),
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",
views.txn_store, name="transactions.update"),
path("transactions/<txn:txn>/delete",

View File

@ -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: