              url=r'^{prefix}/{lookup}/{methodname}{trailing_slash}$',
              mapping={
                  '{httpmethod}': '{methodname}',
              },
              name='{basename}-{methodnamehyphen}',
              initkwargs={}
          ),
      ]
  
      def __init__(self, trailing_slash=True):
 
</s> remove from rest_framework.decorators import link, action
 </s> add from rest_framework.decorators import link, action, collection_link, collection_action </s> remove             if route.mapping == {'{httpmethod}': '{methodname}'}:
 </s> add             if route.name == '{basename}-dynamic-{methodnamehyphen}':
            name='{basename}-dynamic-{methodnamehyphen}',
              url=r'^{prefix}/{lookup}/{methodname}{trailing_slash}$',
              mapping={
                  '{httpmethod}': '{methodname}',
              },
            name='{basename}-dynamic-{methodnamehyphen}',
              initkwargs={}
          ),
      ]
  
      def __init__(self, trailing_slash=True):
keep keep keep keep replace keep keep keep keep keep
 Add support for collection routes to SimpleRouter 
rest_framework/routers.py