from django.urls import include, path from utilities.urls import get_model_urls from . import views app_name = 'netbox_rack_concept' urlpatterns = [ # Rack concepts path('concepts/', include(get_model_urls('netbox_rack_concept', 'rackconcept', detail=False))), # Combine two concepts into a taller one. Listed before the / include below only # for readability; 'merge' can never match the int converter anyway. path('concepts/merge/', views.MergeConceptsView.as_view(), name='rackconcept_merge'), path('concepts//', include(get_model_urls('netbox_rack_concept', 'rackconcept'))), # Planned devices path('devices/', include(get_model_urls('netbox_rack_concept', 'conceptdevice', detail=False))), path('devices//', include(get_model_urls('netbox_rack_concept', 'conceptdevice'))), # Entry point from a real rack path('racks//copy/', views.RackCopyView.as_view(), name='rack_copy'), ]