homelog/container/urls.py

16 lines
827 B
Python

from django.urls import path
from container.views import ContainerListView, ContainerUpdateView, ContainerCreateView, ContainerDetailView, ContainerDeleteView
from container.views import ContainerTypeListView, ContainerTypeDetailView, ContainerTypeCreateView
app_name = 'container'
urlpatterns = [
path('', ContainerListView.as_view(), name='list'),
path('add/', ContainerCreateView.as_view(), name='add'),
path('edit/<int:pk>/', ContainerUpdateView.as_view(), name='update'),
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'),
]