  from rest_framework.decorators import api_view
  from rest_framework.response import Response
  from rest_framework.reverse import reverse
  from rest_framework.urlpatterns import format_suffix_patterns
  
  
  def replace_methodname(format_string, methodname):
 
</s> remove             '{basename}-{methodname}'
 </s> add             '{basename}-{methodnamehyphen}' </s> remove                         name_format.replace('{methodname}', methodname),
 </s> add                         replace_methodname(name_format, methodname), </s> remove                         url_format.replace('{methodname}', methodname),
 </s> add                         replace_methodname(url_format, methodname),
from rest_framework.viewsets import ModelViewSet
  from rest_framework.decorators import api_view
  from rest_framework.response import Response
  from rest_framework.reverse import reverse
from rest_framework.viewsets import ModelViewSet
  from rest_framework.urlpatterns import format_suffix_patterns
  
  
  def replace_methodname(format_string, methodname):
keep keep add keep keep keep keep
 Added AutoRouter.  Don't know if this is a good idea. 
rest_framework/routers.py