from django.urls import include, path
from rest_framework_extensions.routers import ExtendedSimpleRouter
from . import views

router = ExtendedSimpleRouter()
(
    router.register(r'projects', views.ProjectViewSet, basename='project')
        .register(r'tasks',
            views.TaskViewSet,
            basename='project-tasks',
            parents_query_lookups=['project_id'])
)

urlpatterns = router.urls 

a9304b9bb3a02b0b2505903ec8a648c585e1052c
<mask token>

<mask token>
router.register('projects', views.ProjectViewSet, basename='project').register(
    'tasks', views.TaskViewSet, basename='project-tasks',
    parents_query_lookups=['project_id'])
<mask token>

<mask token>
router = ExtendedSimpleRouter()
router.register('projects', views.ProjectViewSet, basename='project').register(
    'tasks', views.TaskViewSet, basename='project-tasks',
    parents_query_lookups=['project_id'])
urlpatterns = router.urls

from django.urls import include, path
from rest_framework_extensions.routers import ExtendedSimpleRouter
from . import views
router = ExtendedSimpleRouter()
router.register('projects', views.ProjectViewSet, basename='project').register(
    'tasks', views.TaskViewSet, basename='project-tasks',
    parents_query_lookups=['project_id'])
urlpatterns = router.urls

from django.urls import include, path
from rest_framework_extensions.routers import ExtendedSimpleRouter
from . import views

router = ExtendedSimpleRouter()
(
    router.register(r'projects', views.ProjectViewSet, basename='project')
        .register(r'tasks',
            views.TaskViewSet,
            basename='project-tasks',
            parents_query_lookups=['project_id'])
)

urlpatterns = router.urls 
