rearrange the urls

This commit is contained in:
Andreas Zweili 2019-08-04 20:44:19 +02:00
parent b2281be9cd
commit 74677e6c2d

View File

@ -8,13 +8,13 @@ urlpatterns = [
name='customer'),
path('customer/<int:customer_id>/computers',
views.computers_table_view, name='computers'),
path('device/<int:device_id>/', views.device_detail_view, name='device'),
path('computer/<int:computer_id>/', views.computer_detail_view,
name='computer'),
path('customer/<int:customer_id>/devices/', views.devices_table_view,
name='devices'),
path('customer/<int:customer_id>/nets/', views.nets_table_view,
name='nets'),
path('computer/<int:computer_id>/', views.computer_detail_view,
name='computer'),
path('device/<int:device_id>/', views.device_detail_view, name='device'),
path('net/<int:pk>/', views.net_detail_view, name='net'),
path('backup/<int:pk>/', views.backup_detail_view, name='backup'),
path('computers/all/', views.AllComputersView.as_view(), name='all_computers')