  from rest_framework import (
      filters, generics, pagination, permissions, serializers
  )
  from rest_framework.compat import coreapi, coreschema, get_regex_pattern, path
  from rest_framework.decorators import (
      api_view, detail_route, list_route, schema
  )
  from rest_framework.request import Request
  from rest_framework.routers import DefaultRouter, SimpleRouter
  from rest_framework.schemas import (
      AutoSchema, ManualSchema, SchemaGenerator, get_schema_view
  )
 
</s> remove from rest_framework.decorators import detail_route, list_route
 </s> add from rest_framework.decorators import action </s> remove     api_view, authentication_classes, parser_classes, permission_classes,
    renderer_classes, schema, throttle_classes
 </s> add     action, api_view, authentication_classes, detail_route, list_route,
    parser_classes, permission_classes, renderer_classes, schema,
    throttle_classes </s> remove from rest_framework.decorators import detail_route, list_route
 </s> add from rest_framework.decorators import action
from rest_framework.decorators import action, api_view, schema
  from rest_framework import (
      filters, generics, pagination, permissions, serializers
  )
  from rest_framework.compat import coreapi, coreschema, get_regex_pattern, path
from rest_framework.decorators import action, api_view, schema
from rest_framework.decorators import action, api_view, schema
from rest_framework.decorators import action, api_view, schema
  from rest_framework.request import Request
  from rest_framework.routers import DefaultRouter, SimpleRouter
  from rest_framework.schemas import (
      AutoSchema, ManualSchema, SchemaGenerator, get_schema_view
  )
keep keep keep keep replace replace replace keep keep keep keep keep
 Rework dynamic list/detail actions (#5705)

* Merge list/detail route decorators into 'action'

* Merge dynamic routes, add 'detail' attribute

* Add 'ViewSet.get_extra_actions()'

* Refactor dynamic route checking & collection

* Refactor dynamic route generation

* Add 'ViewSet.detail' initkwarg

* Fixup schema test

* Add release notes for dynamic action changes

* Replace list/detail route decorators in tests

* Convert tabs to spaces in router docs

* Update docs

* Make 'detail' a required argument of 'action'

* Improve router docs 
tests/test_schemas.py