Renamed the transaction_create() view to transaction_edit() in the accounting application.
This commit is contained in:
parent
78cac61cd5
commit
9aa85b6ae8
@ -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",
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user