diff --git a/lms/djangoapps/courseware/module_render.py b/lms/djangoapps/courseware/module_render.py index a334ad01e9..25a74b6d69 100644 --- a/lms/djangoapps/courseware/module_render.py +++ b/lms/djangoapps/courseware/module_render.py @@ -716,7 +716,6 @@ def get_module_system_for_user(user, student_data, # TODO # pylint: disable=to "reverification": ReverificationService(), 'proctoring': ProctoringService(), 'credit': CreditService(), - 'reverification': ReverificationService(), 'bookmarks': BookmarksService(user=user), }, get_user_role=lambda: get_user_role(user, course_id), diff --git a/lms/static/js/bookmarks/collections/bookmarks.js b/lms/static/js/bookmarks/collections/bookmarks.js index 33a3b6f993..5897d3336e 100644 --- a/lms/static/js/bookmarks/collections/bookmarks.js +++ b/lms/static/js/bookmarks/collections/bookmarks.js @@ -26,4 +26,5 @@ }); }); -})(define || RequireJS.define); \ No newline at end of file +})(define || RequireJS.define); + diff --git a/openedx/core/djangoapps/user_api/urls.py b/openedx/core/djangoapps/user_api/urls.py index 8f143a741a..ec2fa93cf7 100644 --- a/openedx/core/djangoapps/user_api/urls.py +++ b/openedx/core/djangoapps/user_api/urls.py @@ -2,33 +2,32 @@ Defines the URL routes for this app. """ +from django.conf import settings from django.conf.urls import patterns, url from ..profile_images.views import ProfileImageView from .accounts.views import AccountView from .preferences.views import PreferencesView, PreferencesDetailView -USERNAME_PATTERN = r'(?P[\w.+-]+)' - urlpatterns = patterns( '', url( - r'^v1/accounts/{}$'.format(USERNAME_PATTERN), + r'^v1/accounts/{}$'.format(settings.USERNAME_PATTERN), AccountView.as_view(), name="accounts_api" ), url( - r'^v1/accounts/{}/image$'.format(USERNAME_PATTERN), + r'^v1/accounts/{}/image$'.format(settings.USERNAME_PATTERN), ProfileImageView.as_view(), name="accounts_profile_image_api" ), url( - r'^v1/preferences/{}$'.format(USERNAME_PATTERN), + r'^v1/preferences/{}$'.format(settings.USERNAME_PATTERN), PreferencesView.as_view(), name="preferences_api" ), url( - r'^v1/preferences/{}/(?P[a-zA-Z0-9_]+)$'.format(USERNAME_PATTERN), + r'^v1/preferences/{}/(?P[a-zA-Z0-9_]+)$'.format(settings.USERNAME_PATTERN), PreferencesDetailView.as_view(), name="preferences_detail_api" ),