From c28f5258c2792f1412e50b184e236fc311632e40 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Thu, 10 Mar 2022 12:39:27 +0100 Subject: [PATCH] Align URLs --- aleksis/apps/tezor/tables.py | 2 +- aleksis/apps/tezor/urls.py | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/aleksis/apps/tezor/tables.py b/aleksis/apps/tezor/tables.py index d900189..1139c5e 100644 --- a/aleksis/apps/tezor/tables.py +++ b/aleksis/apps/tezor/tables.py @@ -98,7 +98,7 @@ class InvoicesTable(tables.Table): text=_("View"), ) print = tables.LinkColumn( - "get_invoice_by_pk", + "print_invoice", args=[A("id")], verbose_name=_("Print"), text=_("Print"), diff --git a/aleksis/apps/tezor/urls.py b/aleksis/apps/tezor/urls.py index bea20f3..5485688 100644 --- a/aleksis/apps/tezor/urls.py +++ b/aleksis/apps/tezor/urls.py @@ -4,50 +4,50 @@ from . import views urlpatterns = [ path("payments/", include("payments.urls")), - path("invoice/<int:pk>/print", views.GetInvoicePDF.as_view(), name="get_invoice_by_pk"), - path("invoice/<str:token>/payment", views.do_payment, name="do_payment"), + path("invoice/<int:pk>/print/", views.GetInvoicePDF.as_view(), name="print_invoice"), + path("invoice/<str:token>/pay", views.do_payment, name="do_payment"), path( - "clients/list", + "clients/", views.ClientListView.as_view(), name="clients", ), path( - "clients/create", + "client/create/", views.ClientCreateView.as_view(), name="create_client", ), path( - "clients/<int:pk>/edit", + "client/<int:pk>/edit/", views.ClientEditView.as_view(), name="edit_client_by_pk", ), path( - "clients/<int:pk>/delete", + "client/<int:pk>/delete/", views.ClientDeleteView.as_view(), name="delete_client_by_pk", ), path( - "clients/<int:pk>/", + "client/<int:pk>/", views.ClientDetailView.as_view(), name="client_by_pk", ), path( - "client/<int:pk>/invoice_groups/create", + "client/<int:pk>/invoice_groups/create/", views.InvoiceGroupCreateView.as_view(), name="create_invoice_group", ), path( - "invoice_groups/<int:pk>/edit", + "invoice_group/<int:pk>/edit/", views.InvoiceGroupEditView.as_view(), name="edit_invoice_group_by_pk", ), path( - "invoice_groups/<int:pk>/", + "invoice_group/<int:pk>/", views.InvoiceGroupDetailView.as_view(), name="invoice_group_by_pk", ), path( - "invoice_groups/<int:pk>/delete", + "invoice_group/<int:pk>/delete/", views.InvoiceGroupDeleteView.as_view(), name="delete_invoice_group_by_pk", ), -- GitLab