# Path: rest_framework_extensions/routers.py
# class ExtendedSimpleRouter(ExtendedRouterMixin, SimpleRouter):
#     pass
# 
# Path: tests_app/tests/functional/routers/nested_router_mixin/views.py
# class TaskViewSet(NestedViewSetMixin, ModelViewSet):
#     queryset = TaskModel.objects.all()
#     serializer_class = TaskSerializer
# 
# class TaskCommentViewSet(CommentViewSet):
#     def get_queryset(self):
#         return super().get_queryset().filter(
#             content_type=ContentType.objects.get_for_model(TaskModel)
#         )
# 
# class BookViewSet(NestedViewSetMixin, ModelViewSet):
#     queryset = BookModel.objects.all()
#     serializer_class = BookSerializer
# 
# class BookCommentViewSet(CommentViewSet):
#     def get_queryset(self):
#         return super().get_queryset().filter(
#             content_type=ContentType.objects.get_for_model(BookModel)
#         )


from rest_framework_extensions.routers import ExtendedSimpleRouter
from .views import (
    TaskViewSet,
    TaskCommentViewSet,
    BookViewSet,
    BookCommentViewSet
)



router = ExtendedSimpleRouter()
# tasks route
(
    router.register(r'tasks', TaskViewSet)
          .register(r'comments', TaskCommentViewSet, 'tasks-comment', parents_query_lookups=['object_id'])

# Path: rest_framework_extensions/routers.py
# class ExtendedSimpleRouter(ExtendedRouterMixin, SimpleRouter):
#     pass
# 
# Path: tests_app/tests/functional/routers/nested_router_mixin/views.py
# class TaskViewSet(NestedViewSetMixin, ModelViewSet):
#     queryset = TaskModel.objects.all()
#     serializer_class = TaskSerializer
# 
# class TaskCommentViewSet(CommentViewSet):
#     def get_queryset(self):
#         return super().get_queryset().filter(
#             content_type=ContentType.objects.get_for_model(TaskModel)
#         )
# 
# class BookViewSet(NestedViewSetMixin, ModelViewSet):
#     queryset = BookModel.objects.all()
#     serializer_class = BookSerializer
# 
# class BookCommentViewSet(CommentViewSet):
#     def get_queryset(self):
#         return super().get_queryset().filter(
#             content_type=ContentType.objects.get_for_model(BookModel)
#         )


# Path: tests_app/tests/functional/routers/nested_router_mixin/urls_generic_relations.py
from rest_framework_extensions.routers import ExtendedSimpleRouter
from .views import (
    TaskViewSet,
    TaskCommentViewSet,
    BookViewSet,
    BookCommentViewSet
)




router = ExtendedSimpleRouter()
# tasks route
(
    router.register(r'tasks', TaskViewSet)
          .register(r'comments', TaskCommentViewSet, 'tasks-comment', parents_query_lookups=['object_id'])

)