Added asset model and basic views
This commit is contained in:
11
asset/urls.py
Normal file
11
asset/urls.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.urls import path
|
||||
from asset.views import AssetCreateView, AssetDeleteView, AssetUpdateView, AssetIndexView
|
||||
|
||||
app_name = 'asset'
|
||||
urlpatterns = [
|
||||
path('', AssetIndexView.as_view(), name='index'),
|
||||
path('add/', AssetCreateView.as_view(), name='asset-add'),
|
||||
path('<int:pk>/', AssetUpdateView.as_view(), name='asset-update'),
|
||||
path('<int:pk>/delete/', AssetDeleteView.as_view(), name='asset-delete'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user