diff --git a/aleksis/apps/tezor/tables.py b/aleksis/apps/tezor/tables.py index d9001895cd8d4232f3ff24b25ea847b2747077db..1139c5eae99adb5ea61b632c504b703836646789 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 bea20f3c01b222d6d8bb9c1f0699e84011453553..54856887d61bf33ec3959d5fc081975a817fa1af 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", ),