          "`list_route` is pending deprecation and will be removed in 3.10 in favor of "
          "`action`, which accepts a `detail` bool. Use `@action(detail=False)` instead.",
          PendingDeprecationWarning, stacklevel=2
      )
      return action(methods, detail=False, **kwargs)
 
</s> remove     return action(methods, detail=True, **kwargs)
 </s> add     def decorator(func):
        func = action(methods, detail=True, **kwargs)(func)
        if 'url_name' not in kwargs:
            func.url_name = func.url_path.replace('_', '-')
        return func
    return decorator </s> remove         func.url_path = url_path or func.__name__
        func.url_name = url_name or func.__name__.replace('_', '-')
 </s> add         func.url_path = url_path if url_path else func.__name__
        func.url_name = url_name if url_name else func.__name__.replace('_', '-')
    def decorator(func):
        func = action(methods, detail=False, **kwargs)(func)
        if 'url_name' not in kwargs:
            func.url_name = func.url_path.replace('_', '-')
        return func
    return decorator
          "`list_route` is pending deprecation and will be removed in 3.10 in favor of "
          "`action`, which accepts a `detail` bool. Use `@action(detail=False)` instead.",
          PendingDeprecationWarning, stacklevel=2
      )
    def decorator(func):
        func = action(methods, detail=False, **kwargs)(func)
        if 'url_name' not in kwargs:
            func.url_name = func.url_path.replace('_', '-')
        return func
    return decorator
keep keep keep keep replace
 Use old url_name behavior in route decorators (#5915)

* Wrap action decorator for old url_name behavior 
rest_framework/decorators.py