Renamed the view txn_edit() to txn_form() in the accounting application.
This commit is contained in:
parent
dcf895c22b
commit
1a6f36af0b
@ -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",
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user