  
          # Determine any `@action` or `@link` decorated methods on the viewset
          dynamic_routes = []
          for methodname in dir(viewset):
              attr = getattr(viewset, methodname)
              httpmethods = getattr(attr, 'bind_to_methods', None)
              collection = getattr(attr, 'collection', False)
              if httpmethods:
 
</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}':
        collection_routes = []
  
          # Determine any `@action` or `@link` decorated methods on the viewset
        collection_routes = []
          dynamic_routes = []
          for methodname in dir(viewset):
              attr = getattr(viewset, methodname)
              httpmethods = getattr(attr, 'bind_to_methods', None)
              collection = getattr(attr, 'collection', False)
              if httpmethods:
keep add keep keep keep keep keep keep
 Add support for collection routes to SimpleRouter 
rest_framework/routers.py