Skip to content
Snippets Groups Projects
Commit 84f0d8e3 authored by David Ormsbee's avatar David Ormsbee
Browse files

Merge pull request #5364 from edx/ormsbee/mobile_username_url_fix

Fix to allow usernames with '-', '+', '.' in Mobile API urls.
parents ddb0ab90 eb297d48
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,9 @@ from rest_framework.urlpatterns import format_suffix_patterns
from .views import UserDetail, UserCourseEnrollmentsList
urlpatterns = patterns('mobile_api.users.views',
url(r'^(?P<username>\w+)$', UserDetail.as_view(), name='user-detail'),
url(r'^(?P<username>[\w.+-]+)$', UserDetail.as_view(), name='user-detail'),
url(
r'^(?P<username>\w+)/course_enrollments/$',
r'^(?P<username>[\w.+-]+)/course_enrollments/$',
UserCourseEnrollmentsList.as_view(),
name='courseenrollment-detail'
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment