1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #4094: Convert unnecessary regular expressions to strings in URL patterns

This commit is contained in:
Jeremy Stretch
2020-02-05 16:12:48 -05:00
parent b1e78fa3c4
commit a58bbccfd3
16 changed files with 558 additions and 558 deletions

View File

@ -15,11 +15,11 @@ router = routers.DefaultRouter()
router.APIRootView = TenancyRootView
# Field choices
router.register(r'_choices', views.TenancyFieldChoicesViewSet, basename='field-choice')
router.register('_choices', views.TenancyFieldChoicesViewSet, basename='field-choice')
# Tenants
router.register(r'tenant-groups', views.TenantGroupViewSet)
router.register(r'tenants', views.TenantViewSet)
router.register('tenant-groups', views.TenantGroupViewSet)
router.register('tenants', views.TenantViewSet)
app_name = 'tenancy-api'
urlpatterns = router.urls