      @list_route()
      def detail(self, request):
          return {}
  
      @list_route(url_path='detail/export')
      def detail_export(self, request):
          return {}
  
  
  naming_collisions_router = SimpleRouter()
 
</s> remove     @list_route()
 </s> add     @action(detail=False) </s> remove     @list_route(methods=['post', 'get'], serializer_class=EmptySerializer)
 </s> add     @action(methods=['post', 'get'], detail=False, serializer_class=EmptySerializer) </s> remove     @list_route()
 </s> add     @action(detail=False) </s> remove     @list_route()
 </s> add     @action(detail=False) </s> remove     @detail_route()
 </s> add     @action(detail=True)
    @action(detail=False, url_path='detail/export')
      @list_route()
      def detail(self, request):
          return {}
  
    @action(detail=False, url_path='detail/export')
      def detail_export(self, request):
          return {}
  
  
  naming_collisions_router = SimpleRouter()
keep keep keep keep 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