Fix all deprecation warnings generated by Django REST Framework during the unit tests: * ``The `base_name` argument is pending deprecation in favor of `basename`.`` (86 occurrences) * `` `detail_route` is deprecated and will be removed in 3.10 in favor of `action`, which accepts a `detail` bool. Use `@action(detail=True)` instead.`` (18 occurrences)
15 lines
306 B
Python
15 lines
306 B
Python
"""
|
|
URLs for the Studio API [Course Run]
|
|
"""
|
|
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from .views.course_runs import CourseRunViewSet
|
|
|
|
app_name = 'cms.djangoapps.api.v1'
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'course_runs', CourseRunViewSet, basename='course_run')
|
|
urlpatterns = router.urls
|