homelog/asset/urls.py

14 lines
488 B
Python
Raw Normal View History

2022-03-10 16:28:39 +00:00
from django.urls import path
2022-03-16 13:13:20 +00:00
from . import views
2022-03-17 06:21:38 +00:00
from asset.views import AssetCreateView, AssetDeleteView, AssetUpdateView, AssetListView
2022-03-10 16:28:39 +00:00
app_name = 'asset'
urlpatterns = [
path('', AssetListView.as_view(), name='list'),
2022-03-16 16:43:52 +00:00
path('add/', AssetCreateView.as_view(), name='add'),
path('<int:pk>/', AssetUpdateView.as_view(), name='update'),
2022-03-16 16:43:52 +00:00
path('<int:pk>/', AssetUpdateView.as_view(), name='detail'),
2022-03-17 06:21:38 +00:00
path('<int:pk>/delete/', AssetDeleteView.as_view(), name='delete'),
2022-03-10 16:28:39 +00:00
]