diff --git a/netbox_floorplan/urls.py b/netbox_floorplan/urls.py index 1a131f3..ac8a6e6 100644 --- a/netbox_floorplan/urls.py +++ b/netbox_floorplan/urls.py @@ -3,45 +3,17 @@ from netbox.views.generic import ObjectChangeLogView urlpatterns = ( - path('floorplans/', - views.FloorplanListView.as_view(), - name='floorplan_list'), - path('floorplans/racks/', - views.FloorplanRackListView.as_view(), - name='floorplan_rack_list'), - path('floorplans/devices/', - views.FloorplanDeviceListView.as_view(), - name='floorplan_device_list'), - path('floorplans/add/', - views.FloorplanAddView.as_view(), - name='floorplan_add'), - path('floorplans//edit/', - views.FloorplanMapEditView.as_view(), - name='floorplan_edit'), - path('floorplans//delete/', - views.FloorplanDeleteView.as_view(), - name='floorplan_delete'), - path('floorplans//changelog/', - ObjectChangeLogView.as_view(), - name='floorplan_changelog', - kwargs={'model': models.Floorplan}), - path('floorplans/floorplanimages/', - views.FloorplanImageListView.as_view(), - name='floorplanimage_list'), - path('floorplans/floorplanimages/add/', - views.FloorplanImageEditView.as_view(), - name='floorplanimage_add'), - path('floorplans/floorplanimages//edit/', - views.FloorplanImageEditView.as_view(), - name='floorplanimage_edit'), - path('floorplans/floorplanimages//delete/', - views.FloorplanImageDeleteView.as_view(), - name='floorplanimage_delete'), - path('floorplans/floorplanimages//', - views.FloorplanImageView.as_view(), - name='floorplanimage'), - path('floorplans/floorplanimages//changelog/', - ObjectChangeLogView.as_view(), - name='floorplanimage_changelog', - kwargs={'model': models.FloorplanImage}) + path('floorplans/', views.FloorplanListView.as_view(), name='floorplan_list'), + path('floorplans/racks/', views.FloorplanRackListView.as_view(), name='floorplan_rack_list'), + path('floorplans/devices/', views.FloorplanDeviceListView.as_view(), name='floorplan_device_list'), + path('floorplans/add/', views.FloorplanAddView.as_view(), name='floorplan_add'), + path('floorplans//edit/', views.FloorplanMapEditView.as_view(), name='floorplan_edit'), + path('floorplans//delete/', views.FloorplanDeleteView.as_view(), name='floorplan_delete'), + path('floorplans//changelog/', ObjectChangeLogView.as_view(), name='floorplan_changelog', kwargs={'model': models.Floorplan}), + path('floorplans/floorplanimages/', views.FloorplanImageListView.as_view(), name='floorplanimage_list'), + path('floorplans/floorplanimages/add/', views.FloorplanImageEditView.as_view(), name='floorplanimage_add'), + path('floorplans/floorplanimages//edit/', views.FloorplanImageEditView.as_view(), name='floorplanimage_edit'), + path('floorplans/floorplanimages//delete/', views.FloorplanImageDeleteView.as_view(), name='floorplanimage_delete'), + path('floorplans/floorplanimages//', views.FloorplanImageView.as_view(), name='floorplanimage'), + path('floorplans/floorplanimages//changelog/', ObjectChangeLogView.as_view(), name='floorplanimage_changelog', kwargs={'model': models.FloorplanImage}), )