                  #   warnings and (B) generate URLS that will require using '//'.
                  if not prefix and regex[:2] == '^/':
                      regex = '^' + regex[2:]
  
                  view = viewset.as_view(mapping, **route.initkwargs)
                  name = route.name.format(basename=basename)
                  ret.append(url(regex, view, name=name))
  
          return ret
  
 
</s> remove         # The suffix initkwarg is reserved for identifying the viewset type
 </s> add         # The suffix initkwarg is reserved for displaying the viewset type.
                initkwargs = route.initkwargs.copy()
                initkwargs.update({
                    'basename': basename,
                })

                view = viewset.as_view(mapping, **initkwargs)
                  #   warnings and (B) generate URLS that will require using '//'.
                  if not prefix and regex[:2] == '^/':
                      regex = '^' + regex[2:]
  
                initkwargs = route.initkwargs.copy()
                initkwargs.update({
                    'basename': basename,
                })

                view = viewset.as_view(mapping, **initkwargs)
                  name = route.name.format(basename=basename)
                  ret.append(url(regex, view, name=name))
  
          return ret
  
keep keep keep keep replace keep keep keep keep keep
 Add '.basename' and '.reverse_action()' to ViewSet (#5648)

* Router sets 'basename' on ViewSet

* Add 'ViewSet.reverse_action()' method

* Test router setting initkwargs 
rest_framework/routers.py