              """Description"""
  
          assert test_action.mapping == {'get': 'test_action'}
          assert test_action.detail is True
          assert test_action.name == 'Test action'
          assert test_action.url_path == 'test_action'
          assert test_action.url_name == 'test-action'
          assert test_action.kwargs == {
              'name': 'Test action',
              'description': 'Description',
 
</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']: </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     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.
              """Description"""
  
          assert test_action.mapping == {'get': 'test_action'}
          assert test_action.detail is True

          assert test_action.url_path == 'test_action'
          assert test_action.url_name == 'test-action'
          assert test_action.kwargs == {
              'name': 'Test action',
              'description': 'Description',
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 
tests/test_decorators.py