Renamed the views transaction_show() to txn_show(), transaction_edit() to txn_edit(), and transaction_store() to txn_store() in the accounting application.

This commit is contained in:
依瑪貓 2020-08-02 03:08:26 +08:00
parent 96eb033fb4
commit f7c62fcc66
2 changed files with 8 additions and 8 deletions

View File

@ -76,15 +76,15 @@ 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.transaction_edit, name="transactions.create"), views.txn_edit, name="transactions.create"),
path("transactions/<txn-type:txn_type>/store", path("transactions/<txn-type:txn_type>/store",
views.transaction_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.transaction_show, name="transactions.show"), views.txn_show, name="transactions.show"),
path("transactions/<txn-type:txn_type>/<txn:txn>/edit", path("transactions/<txn-type:txn_type>/<txn:txn>/edit",
views.transaction_edit, name="transactions.edit"), views.txn_edit, name="transactions.edit"),
path("transactions/<txn-type:txn_type>/<txn:txn>/update", path("transactions/<txn-type:txn_type>/<txn:txn>/update",
views.transaction_store, name="transactions.update"), views.txn_store, name="transactions.update"),
path("transactions/<txn:txn>/delete", path("transactions/<txn:txn>/delete",
mia_core_views.todo, name="transactions.delete"), mia_core_views.todo, name="transactions.delete"),
path("transactions/sort/<date:date>", path("transactions/sort/<date:date>",

View File

@ -793,7 +793,7 @@ def search(request):
@require_GET @require_GET
@login_required @login_required
def transaction_show(request, txn_type, txn): def txn_show(request, txn_type, txn):
"""The view of an accounting transaction. """The view of an accounting transaction.
Args: Args:
@ -811,7 +811,7 @@ def transaction_show(request, txn_type, txn):
@require_GET @require_GET
@login_required @login_required
def transaction_edit(request, txn_type, txn=None): def txn_edit(request, txn_type, txn=None):
"""The view to edit an accounting transaction. """The view to edit an accounting transaction.
Args: Args:
@ -839,7 +839,7 @@ def transaction_edit(request, txn_type, txn=None):
@require_POST @require_POST
@login_required @login_required
def transaction_store(request, txn_type, txn=None): def txn_store(request, txn_type, txn=None):
"""The view to store an accounting transaction. """The view to store an accounting transaction.
Args: Args: