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
1 merge request!3Implement payment backends and interaction
Pipeline #58973 failed
...@@ -98,7 +98,7 @@ class InvoicesTable(tables.Table): ...@@ -98,7 +98,7 @@ class InvoicesTable(tables.Table):
text=_("View"), text=_("View"),
) )
print = tables.LinkColumn( print = tables.LinkColumn(
"get_invoice_by_pk", "print_invoice",
args=[A("id")], args=[A("id")],
verbose_name=_("Print"), verbose_name=_("Print"),
text=_("Print"), text=_("Print"),
......
...@@ -4,50 +4,50 @@ from . import views ...@@ -4,50 +4,50 @@ from . import views
urlpatterns = [ urlpatterns = [
path("payments/", include("payments.urls")), path("payments/", include("payments.urls")),
path("invoice/<int:pk>/print", views.GetInvoicePDF.as_view(), name="get_invoice_by_pk"), path("invoice/<int:pk>/print/", views.GetInvoicePDF.as_view(), name="print_invoice"),
path("invoice/<str:token>/payment", views.do_payment, name="do_payment"), path("invoice/<str:token>/pay", views.do_payment, name="do_payment"),
path( path(
"clients/list", "clients/",
views.ClientListView.as_view(), views.ClientListView.as_view(),
name="clients", name="clients",
), ),
path( path(
"clients/create", "client/create/",
views.ClientCreateView.as_view(), views.ClientCreateView.as_view(),
name="create_client", name="create_client",
), ),
path( path(
"clients/<int:pk>/edit", "client/<int:pk>/edit/",
views.ClientEditView.as_view(), views.ClientEditView.as_view(),
name="edit_client_by_pk", name="edit_client_by_pk",
), ),
path( path(
"clients/<int:pk>/delete", "client/<int:pk>/delete/",
views.ClientDeleteView.as_view(), views.ClientDeleteView.as_view(),
name="delete_client_by_pk", name="delete_client_by_pk",
), ),
path( path(
"clients/<int:pk>/", "client/<int:pk>/",
views.ClientDetailView.as_view(), views.ClientDetailView.as_view(),
name="client_by_pk", name="client_by_pk",
), ),
path( path(
"client/<int:pk>/invoice_groups/create", "client/<int:pk>/invoice_groups/create/",
views.InvoiceGroupCreateView.as_view(), views.InvoiceGroupCreateView.as_view(),
name="create_invoice_group", name="create_invoice_group",
), ),
path( path(
"invoice_groups/<int:pk>/edit", "invoice_group/<int:pk>/edit/",
views.InvoiceGroupEditView.as_view(), views.InvoiceGroupEditView.as_view(),
name="edit_invoice_group_by_pk", name="edit_invoice_group_by_pk",
), ),
path( path(
"invoice_groups/<int:pk>/", "invoice_group/<int:pk>/",
views.InvoiceGroupDetailView.as_view(), views.InvoiceGroupDetailView.as_view(),
name="invoice_group_by_pk", name="invoice_group_by_pk",
), ),
path( path(
"invoice_groups/<int:pk>/delete", "invoice_group/<int:pk>/delete/",
views.InvoiceGroupDeleteView.as_view(), views.InvoiceGroupDeleteView.as_view(),
name="delete_invoice_group_by_pk", 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