homelog/container/urls.py

25 lines
1.5 KiB
Python
Raw Permalink Normal View History

2022-04-14 14:31:46 +00:00
from django.urls import include, path
2022-05-20 18:42:54 +00:00
from container.views import ContainerListView, ContainerUpdateView, ContainerCreateView, ContainerCopyView, ContainerDetailView, ContainerDeleteView, ContainerPrintLabelView, ContainerImportView
2022-04-01 17:28:10 +00:00
from container.views import ContainerTypeListView, ContainerTypeDetailView, ContainerTypeCreateView, ContainerTypeUpdateView, ContainerTypeDeleteView, ContainerTypeImportView
2022-04-14 14:31:46 +00:00
app_name = 'container'
2022-03-09 10:33:05 +00:00
urlpatterns = [
path('', ContainerListView.as_view(), name='list'),
2022-03-30 08:04:38 +00:00
path('<int:pk>/', ContainerDetailView.as_view(), name='detail'),
path('add/', ContainerCreateView.as_view(), name='add'),
2022-05-20 18:42:54 +00:00
path('copy/<int:pk>/', ContainerCopyView.as_view(), name='copy'),
2022-04-01 17:28:10 +00:00
path('import/', ContainerImportView.as_view(), name='container_import'),
path('edit/<int:pk>/', ContainerUpdateView.as_view(), name='update'),
2022-03-30 08:04:38 +00:00
path('label/<int:pk>/', ContainerPrintLabelView.as_view(), name='print_label'),
path('delete/<int:pk>/', ContainerDeleteView.as_view(), name='delete'),
path('type/', ContainerTypeListView.as_view(), name='container_type_list'),
path('type/<int:pk>/', ContainerTypeDetailView.as_view(), name='container_type_detail'),
path('type/add/', ContainerTypeCreateView.as_view(), name='container_type_add'),
2022-04-01 17:28:10 +00:00
path('type/import/', ContainerTypeImportView.as_view(), name='container_type_import'),
path('type/edit/<int:pk>/', ContainerTypeUpdateView.as_view(), name='container_type_update'),
path('type/delete/<int:pk>/', ContainerTypeDeleteView.as_view(), name='container_type_delete'),
2022-04-14 14:31:46 +00:00
2022-03-09 10:33:05 +00:00
]