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
403 B
Python
17 lines
403 B
Python
"""
|
|
URLs for the notifier api app
|
|
"""
|
|
|
|
|
|
from django.conf.urls import include, url
|
|
from rest_framework import routers
|
|
|
|
from lms.djangoapps.discussion.notifier_api.views import NotifierUsersViewSet
|
|
|
|
notifier_api_router = routers.DefaultRouter()
|
|
notifier_api_router.register(r'users', NotifierUsersViewSet, basename="notifier_users")
|
|
|
|
urlpatterns = [
|
|
url(r'^v1/', include(notifier_api_router.urls)),
|
|
]
|