                          name=replace_methodname(route.name, methodname),
                          initkwargs=initkwargs,
                      ))
              else:
                  # Standard route
                  ret.append(route)
  
 
</s> remove                 dynamic_routes.append((httpmethods, methodname))
 </s> add                 if collection:
                    collection_routes.append((httpmethods, methodname))
                else:
                    dynamic_routes.append((httpmethods, methodname)) </s> remove             if route.mapping == {'{httpmethod}': '{methodname}'}:
 </s> add             if route.name == '{basename}-dynamic-{methodnamehyphen}': </s> remove from rest_framework.decorators import link, action
 </s> add from rest_framework.decorators import link, action, collection_link, collection_action
            elif route.name == '{basename}-collection-{methodnamehyphen}':
                # Dynamic routes (@collection_link or @collection_action decorator)
                for httpmethods, methodname in collection_routes:
                    initkwargs = route.initkwargs.copy()
                    initkwargs.update(getattr(viewset, methodname).kwargs)
                    ret.append(Route(
                        url=replace_methodname(route.url, methodname),
                        mapping=dict((httpmethod, methodname) for httpmethod in httpmethods),
                        name=replace_methodname(route.name, methodname),
                        initkwargs=initkwargs,
                    ))
                          name=replace_methodname(route.name, methodname),
                          initkwargs=initkwargs,
                      ))
            elif route.name == '{basename}-collection-{methodnamehyphen}':
                # Dynamic routes (@collection_link or @collection_action decorator)
                for httpmethods, methodname in collection_routes:
                    initkwargs = route.initkwargs.copy()
                    initkwargs.update(getattr(viewset, methodname).kwargs)
                    ret.append(Route(
                        url=replace_methodname(route.url, methodname),
                        mapping=dict((httpmethod, methodname) for httpmethod in httpmethods),
                        name=replace_methodname(route.name, methodname),
                        initkwargs=initkwargs,
                    ))
              else:
                  # Standard route
                  ret.append(route)
  
keep keep add keep keep keep keep
 Add support for collection routes to SimpleRouter 
rest_framework/routers.py