network_inventory/computers/urls.py

30 lines
1011 B
Python

from django.urls import path
from . import views
urlpatterns = [
path('customer/<int:pk>/computers/',
views.computers_table_view,
name='computers'),
path('computer/<int:pk>/',
views.computer_detail_view,
name='computer'),
path('computers/all/',
views.ComputersFilterView.as_view(),
name='all_computers'),
path('customer/<int:pk>/create/computer/',
views.ComputerCreateFromCustomerView.as_view(),
name='computer_create'),
path('update/computer/<int:pk>/',
views.ComputerUpdateView.as_view(),
name='computer_update'),
path('delete/computer/<int:pk>/', views.ComputerDeleteView.as_view(),
name='computer_delete'),
path('create/ram-relation/<int:pk>/',
views.ComputerRamRelationCreateView.as_view(),
name='ram_relation_create'),
path('delete/ram-relation/<int:pk>/',
views.ComputerRamRelationDeleteView.as_view(),
name='ram_relation_delete'),
]