2020-01-07 21:59:12 +01:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('', views.customers_table_view, name='customers'),
|
2021-12-23 18:50:03 +01:00
|
|
|
path('customer/<int:pk>/', views.customer_detail_view,
|
2020-01-07 21:59:12 +01:00
|
|
|
name='customer'),
|
2020-05-23 14:18:16 +02:00
|
|
|
path('create/customer/',
|
2021-12-23 22:44:31 +01:00
|
|
|
views.customer_create_view,
|
2020-05-23 14:18:16 +02:00
|
|
|
name='customer_create'),
|
2020-08-03 16:35:36 +02:00
|
|
|
path('delete/customer/<int:pk>/', views.CustomerDeleteView.as_view(),
|
|
|
|
name='customer_delete'),
|
2021-12-21 17:51:57 +01:00
|
|
|
path('htmx/create/customer/',
|
2021-12-22 19:14:18 +01:00
|
|
|
views.htmx_create_customer,
|
2021-12-21 17:51:57 +01:00
|
|
|
name='htmx_create_customer'),
|
2020-08-03 13:41:49 +02:00
|
|
|
]
|