mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-25 12:59:59 -06:00
Fixed browsable API breadcrumbs
This commit is contained in:
@@ -3,7 +3,16 @@ from rest_framework import routers
|
||||
from . import views
|
||||
|
||||
|
||||
class TenancyRootView(routers.APIRootView):
|
||||
"""
|
||||
Tenancy API root view
|
||||
"""
|
||||
def get_view_name(self):
|
||||
return 'Tenancy'
|
||||
|
||||
|
||||
router = routers.DefaultRouter()
|
||||
router.APIRootView = TenancyRootView
|
||||
|
||||
# Tenants
|
||||
router.register(r'tenant-groups', views.TenantGroupViewSet)
|
||||
|
||||
Reference in New Issue
Block a user