Fixed deprecation warnings from DRF 3.9

This commit is contained in:
Jeremy Stretch
2018-11-02 13:48:44 -04:00
parent 9cad97b073
commit 5bc3f4b868
7 changed files with 14 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ router = routers.DefaultRouter()
router.APIRootView = TenancyRootView
# Field choices
router.register(r'_choices', views.TenancyFieldChoicesViewSet, base_name='field-choice')
router.register(r'_choices', views.TenancyFieldChoicesViewSet, basename='field-choice')
# Tenants
router.register(r'tenant-groups', views.TenantGroupViewSet)