Reorder the URL patterns in the accounting application.

This commit is contained in:
依瑪貓 2020-08-14 00:37:11 +08:00
parent f82c4afbfe
commit dc27293381

View File

@ -95,10 +95,6 @@ urlpatterns = [
views.AccountFormView.as_view(), name="accounts.create"), views.AccountFormView.as_view(), name="accounts.create"),
path("accounts/store", path("accounts/store",
views.AccountFormView.as_view(), name="accounts.store"), views.AccountFormView.as_view(), name="accounts.store"),
path("api/accounts",
views.api_account_list, name="api.accounts"),
path("api/accounts/options",
views.api_account_options, name="api.accounts.options"),
path("accounts/<account:account>", path("accounts/<account:account>",
views.AccountView.as_view(), name="accounts.detail"), views.AccountView.as_view(), name="accounts.detail"),
path("accounts/<account:account>/edit", path("accounts/<account:account>/edit",
@ -107,4 +103,8 @@ urlpatterns = [
views.AccountFormView.as_view(), name="accounts.update"), views.AccountFormView.as_view(), name="accounts.update"),
path("accounts/<account:account>/delete", path("accounts/<account:account>/delete",
views.account_delete, name="accounts.delete"), views.account_delete, name="accounts.delete"),
path("api/accounts",
views.api_account_list, name="api.accounts"),
path("api/accounts/options",
views.api_account_options, name="api.accounts.options"),
] ]