  from rest_framework.viewsets import ModelViewSet
  from rest_framework.urlpatterns import format_suffix_patterns
  
  
  class BaseRouter(object):
      def __init__(self):
          self.registry = []
  
      def register(self, prefix, viewset, basename):
 
</s> remove                 # Dynamic routes
 </s> add                 # Dynamic routes (@link or @action decorator) </s> remove             '{basename}-{methodname}'
 </s> add             '{basename}-{methodnamehyphen}' </s> remove                         name_format.replace('{methodname}', methodname),
 </s> add                         replace_methodname(name_format, methodname),
def replace_methodname(format_string, methodname):
    """
    Partially format a format_string, swapping out any
    '{methodname}'' or '{methodnamehyphen}'' components.
    """
    methodnamehyphen = methodname.replace('_', '-')
    ret = format_string
    ret = ret.replace('{methodname}', methodname)
    ret = ret.replace('{methodnamehyphen}', methodnamehyphen)
    return ret


  from rest_framework.viewsets import ModelViewSet
  from rest_framework.urlpatterns import format_suffix_patterns
  
  
def replace_methodname(format_string, methodname):
    """
    Partially format a format_string, swapping out any
    '{methodname}'' or '{methodnamehyphen}'' components.
    """
    methodnamehyphen = methodname.replace('_', '-')
    ret = format_string
    ret = ret.replace('{methodname}', methodname)
    ret = ret.replace('{methodnamehyphen}', methodnamehyphen)
    return ret


  class BaseRouter(object):
      def __init__(self):
          self.registry = []
  
      def register(self, prefix, viewset, basename):
keep keep keep add keep keep keep keep keep
 Added AutoRouter.  Don't know if this is a good idea. 
rest_framework/routers.py