Checking if a user was enrolled in a program type was using the `name` field which is subject to be translated. This change allows for us to check by the type's slug which will be constant. This also includes the addition of api.py files for the course_modes, catalog, and programs apps.
13 lines
243 B
Python
13 lines
243 B
Python
"""
|
|
URL definitions for the course_modes API.
|
|
"""
|
|
|
|
|
|
from django.conf.urls import include, url
|
|
|
|
app_name = 'common.djangoapps.course_modes.rest_api'
|
|
|
|
urlpatterns = [
|
|
url(r'^v1/', include('course_modes.rest_api.v1.urls', namespace='v1')),
|
|
]
|