Include API routers directly where possible

This commit is contained in:
Jeremy Stretch
2017-02-01 15:09:23 -05:00
parent 58c4539a37
commit dcd382bd7f
4 changed files with 6 additions and 27 deletions

View File

@@ -1,5 +1,3 @@
from django.conf.urls import include, url
from rest_framework import routers
from . import views
@@ -8,9 +6,3 @@ from . import views
router = routers.DefaultRouter()
router.register(r'tenant-groups', views.TenantGroupViewSet)
router.register(r'tenants', views.TenantViewSet)
urlpatterns = [
url(r'', include(router.urls)),
]