diff --git a/accounting/urls.py b/accounting/urls.py index 34b60c2..337897a 100644 --- a/accounting/urls.py +++ b/accounting/urls.py @@ -68,13 +68,13 @@ urlpatterns = [ path("search", views.search, name="search"), path("transactions//create", - views.transaction_create, name="transactions.create"), + views.transaction_edit, name="transactions.create"), path("transactions//store", mia_core_views.todo, name="transactions.store"), path("transactions//", views.transaction_show, name="transactions.show"), path("transactions///edit", - views.transaction_create, name="transactions.edit"), + views.transaction_edit, name="transactions.edit"), path("transactions///update", mia_core_views.todo, name="transactions.update"), path("transactions//delete", diff --git a/accounting/views.py b/accounting/views.py index 9a7394d..eeb7aea 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -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.