Skip to content
Snippets Groups Projects
Verified Commit c28f5258 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Align URLs

parent 99346f3c
No related branches found
No related tags found
No related merge requests found
......@@ -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"),
......
......@@ -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",
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment