          for methodname in dir(viewset):
              attr = getattr(viewset, methodname)
              httpmethods = getattr(attr, 'bind_to_methods', None)
              if httpmethods:
                  if methodname in known_actions:
                      raise ImproperlyConfigured('Cannot use @action or @link decorator on '
                                                 'method "%s" as it is an existing route' % methodname)
                  httpmethods = [method.lower() for method in httpmethods]
                  if collection:
 
</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 = getattr(attr, 'collection', False)
          for methodname in dir(viewset):
              attr = getattr(viewset, methodname)
              httpmethods = getattr(attr, 'bind_to_methods', None)
            collection = getattr(attr, 'collection', False)
              if httpmethods:
                  if methodname in known_actions:
                      raise ImproperlyConfigured('Cannot use @action or @link decorator on '
                                                 'method "%s" as it is an existing route' % methodname)
                  httpmethods = [method.lower() for method in httpmethods]
                  if collection:
keep keep add keep keep keep keep keep keep
 Add support for collection routes to SimpleRouter 
rest_framework/routers.py