  
  
  router = SimpleRouter()
  router.register(r'actions', ActionViewSet)
  router.register(r'actions-alt', ActionViewSet, base_name='actions-alt')
  
  
  urlpatterns = [
      url(r'^api/', include(router.urls)),
  ]
 
</s> remove router.register('example', ExampleViewSet, base_name='example')
 </s> add router.register('example', ExampleViewSet, basename='example') </s> remove         router.register('example1', MethodLimitedViewSet, base_name='example1')
 </s> add         router.register('example1', MethodLimitedViewSet, basename='example1') </s> remove         router.register('example1', Http404ExampleViewSet, base_name='example1')
        router.register('example2', PermissionDeniedExampleViewSet, base_name='example2')
 </s> add         router.register('example1', Http404ExampleViewSet, basename='example1')
        router.register('example2', PermissionDeniedExampleViewSet, basename='example2') </s> remove namespaced_router.register(r'example', MockViewSet, base_name='example')
 </s> add namespaced_router.register(r'example', MockViewSet, basename='example') </s> remove empty_prefix_router.register(r'', EmptyPrefixViewSet, base_name='empty_prefix')
 </s> add empty_prefix_router.register(r'', EmptyPrefixViewSet, basename='empty_prefix')
router.register(r'actions-alt', ActionViewSet, basename='actions-alt')
  
  
  router = SimpleRouter()
  router.register(r'actions', ActionViewSet)
router.register(r'actions-alt', ActionViewSet, basename='actions-alt')
  
  
  urlpatterns = [
      url(r'^api/', include(router.urls)),
  ]
keep keep keep keep replace keep keep keep keep keep
 Rename base_name => basename for consistency's sake (#5990)

* Rename base_name => basename for consistency

* Update tests to use basename 
tests/test_viewsets.py