          return func
      return decorator
  
  
  def action(methods=None, detail=None, name=None, url_path=None, url_name=None, **kwargs):
      """
      Mark a ViewSet method as a routable action.
  
      Set the `detail` boolean to determine if this action should apply to
      instance/detail requests or collection/list requests.
 
</s> remove     Given a view class, return a textual name to represent the view.
 </s> add     Given a view instance, return a textual name to represent the view. </s> remove     Given a view class, return a textual description to represent the view.
 </s> add     Given a view instance, return a textual description to represent the view. </s> remove         func.kwargs.update({
            'name': func.name,
            'description': func.__doc__ or None
        })
 </s> add         # Set descriptive arguments for viewsets
        if 'name' not in kwargs and 'suffix' not in kwargs:
            func.kwargs['name'] = pretty_name(func.__name__)
        func.kwargs['description'] = func.__doc__ or None </s> remove         for name in ['mapping', 'detail', 'name', 'url_path', 'url_name', 'kwargs']:
 </s> add         for name in ['mapping', 'detail', 'url_path', 'url_name', 'kwargs']:
def action(methods=None, detail=None, url_path=None, url_name=None, **kwargs):
          return func
      return decorator
  
  
def action(methods=None, detail=None, url_path=None, url_name=None, **kwargs):
      """
      Mark a ViewSet method as a routable action.
  
      Set the `detail` boolean to determine if this action should apply to
      instance/detail requests or collection/list requests.
keep keep keep keep replace keep keep keep keep keep
 Fix action support for ViewSet suffixes (#6081)

* Add suffix support for actions

Removes the newly introduced `action.name` in favor of leveraging the
View's `.get_view_name()` method, which supports both name and suffix.

* Fix view description func docstrings

* Test action decorator name & suffix kwargs

* Adjust 'extra action' docs 
rest_framework/decorators.py