from django.conf.urls import patterns, url, include

from rest_framework import routers
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+)/course_enrollments/$',
        UserCourseEnrollmentsList.as_view(),
        name='courseenrollment-detail'
    ),
)


@@ -275,18 +275,23 @@
 sername%3E
+%5B
 %5Cw
+.+-%5D
 +)$', Us
@@ -364,18 +364,23 @@
 sername%3E
+%5B
 %5Cw
+.+-%5D
 +)/cours

Fix to allow usernames with '-', '+', '.' in Mobile API urls.