          return func
      return decorator
  
  
  def link(**kwargs):
      """
      Used to mark a method on a ViewSet that should be routed for detail GET requests.
      """
      msg = 'link is pending deprecation. Use detail_route instead.'
      warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
 
</s> remove     msg = 'link is pending deprecation. Use detail_route instead.'
    warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
 </s> add  </s> remove     Used to mark a method on a ViewSet that should be routed for detail GET requests.
 </s> add     Used to mark a method on a ViewSet that should be routed for detail requests. </s> remove         func.detail = True
 </s> add         func.detail = False
def detail_route(methods=['get'], **kwargs):
          return func
      return decorator
  
  
def detail_route(methods=['get'], **kwargs):
      """
      Used to mark a method on a ViewSet that should be routed for detail GET requests.
      """
      msg = 'link is pending deprecation. Use detail_route instead.'
      warnings.warn(msg, PendingDeprecationWarning, stacklevel=2)
keep keep keep keep replace keep keep keep keep keep
 Commenting link/action decorators as pending deprecation 
rest_framework/decorators.py