Renamed the transaction_create() view to transaction_edit() in the accounting application.

This commit is contained in:
依瑪貓 2020-07-28 03:10:45 +08:00
parent 78cac61cd5
commit 9aa85b6ae8
2 changed files with 4 additions and 4 deletions

View File

@ -68,13 +68,13 @@ urlpatterns = [
path("search",
views.search, name="search"),
path("transactions/<txn-type:type>/create",
views.transaction_create, name="transactions.create"),
views.transaction_edit, name="transactions.create"),
path("transactions/<txn-type:type>/store",
mia_core_views.todo, name="transactions.store"),
path("transactions/<txn-type:type>/<txn:transaction>",
views.transaction_show, name="transactions.show"),
path("transactions/<txn-type:type>/<txn:transaction>/edit",
views.transaction_create, name="transactions.edit"),
views.transaction_edit, name="transactions.edit"),
path("transactions/<txn-type:type>/<txn:transaction>/update",
mia_core_views.todo, name="transactions.update"),
path("transactions/<txn:transaction>/delete",

View File

@ -862,8 +862,8 @@ def transaction_show(request, type, transaction):
@require_GET
@digest_login_required
def transaction_create(request, type, transaction=None):
"""The view to create an accounting transaction.
def transaction_edit(request, type, transaction=None):
"""The view to edit an accounting transaction.
Args:
request (HttpRequest): The request.