from django.urls import (
    include,
    path,
)
from rest_framework_nested import routers

from . import views

cross_router = routers.SimpleRouter()
cross_router.register(r'crosses', views.CrossViewSet)
mission_router = routers.NestedSimpleRouter(
    cross_router,
    r'crosses',
    lookup='cross',
)
mission_router.register(r'missions', views.MissionViewSet)
answer_router = routers.NestedSimpleRouter(
    mission_router,
    r'missions',
    lookup='mission',
)
answer_router.register(r'answers', views.AnswerViewSet)
prompt_router = routers.NestedSimpleRouter(
    mission_router,
    r'missions',
    lookup='mission',
)
prompt_router.register(r'prompts', views.PromptViewSet)
urlpatterns = [
    path('', include(cross_router.urls)),
    path('', include(mission_router.urls)),
    path('', include(answer_router.urls)),
    path('', include(prompt_router.urls)),
]

6e4415cfe8648d19b2388f7c476c9d33891453d1
<mask token>

<mask token>
cross_router.register('crosses', views.CrossViewSet)
<mask token>
mission_router.register('missions', views.MissionViewSet)
<mask token>
answer_router.register('answers', views.AnswerViewSet)
<mask token>
prompt_router.register('prompts', views.PromptViewSet)
<mask token>

<mask token>
cross_router = routers.SimpleRouter()
cross_router.register('crosses', views.CrossViewSet)
mission_router = routers.NestedSimpleRouter(cross_router, 'crosses', lookup
    ='cross')
mission_router.register('missions', views.MissionViewSet)
answer_router = routers.NestedSimpleRouter(mission_router, 'missions',
    lookup='mission')
answer_router.register('answers', views.AnswerViewSet)
prompt_router = routers.NestedSimpleRouter(mission_router, 'missions',
    lookup='mission')
prompt_router.register('prompts', views.PromptViewSet)
urlpatterns = [path('', include(cross_router.urls)), path('', include(
    mission_router.urls)), path('', include(answer_router.urls)), path('',
    include(prompt_router.urls))]

from django.urls import include, path
from rest_framework_nested import routers
from . import views
cross_router = routers.SimpleRouter()
cross_router.register('crosses', views.CrossViewSet)
mission_router = routers.NestedSimpleRouter(cross_router, 'crosses', lookup
    ='cross')
mission_router.register('missions', views.MissionViewSet)
answer_router = routers.NestedSimpleRouter(mission_router, 'missions',
    lookup='mission')
answer_router.register('answers', views.AnswerViewSet)
prompt_router = routers.NestedSimpleRouter(mission_router, 'missions',
    lookup='mission')
prompt_router.register('prompts', views.PromptViewSet)
urlpatterns = [path('', include(cross_router.urls)), path('', include(
    mission_router.urls)), path('', include(answer_router.urls)), path('',
    include(prompt_router.urls))]

from django.urls import (
    include,
    path,
)
from rest_framework_nested import routers

from . import views

cross_router = routers.SimpleRouter()
cross_router.register(r'crosses', views.CrossViewSet)
mission_router = routers.NestedSimpleRouter(
    cross_router,
    r'crosses',
    lookup='cross',
)
mission_router.register(r'missions', views.MissionViewSet)
answer_router = routers.NestedSimpleRouter(
    mission_router,
    r'missions',
    lookup='mission',
)
answer_router.register(r'answers', views.AnswerViewSet)
prompt_router = routers.NestedSimpleRouter(
    mission_router,
    r'missions',
    lookup='mission',
)
prompt_router.register(r'prompts', views.PromptViewSet)
urlpatterns = [
    path('', include(cross_router.urls)),
    path('', include(mission_router.urls)),
    path('', include(answer_router.urls)),
    path('', include(prompt_router.urls)),
]
