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)
17 lines
337 B
Python
17 lines
337 B
Python
"""
|
|
Course Goals URLs
|
|
"""
|
|
|
|
|
|
from django.conf.urls import include, url
|
|
from rest_framework import routers
|
|
|
|
from .views import CourseGoalViewSet
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'course_goals', CourseGoalViewSet, basename='course_goal')
|
|
|
|
urlpatterns = [
|
|
url(r'^v0/', include((router.urls, "api"), namespace='v0')),
|
|
]
|