Commit 36a35339 by Clinton Blackburn

Updated Course ID Regex

This regex is a bit more lax and will allow for hyphens and other characters in course ids.
parent c8ed2cb5
...@@ -16,7 +16,7 @@ COURSE_URLS = [ ...@@ -16,7 +16,7 @@ COURSE_URLS = [
('csv/engagement_activity_trend', views.CourseEngagementActivityTrendCSV.as_view()), ('csv/engagement_activity_trend', views.CourseEngagementActivityTrendCSV.as_view()),
] ]
COURSE_ID_REGEX = r'^(?P<course_id>(\w+/){2}\w+)' COURSE_ID_REGEX = r'^(?P<course_id>([^/]+/){2}[^/]+)'
TRAILING_SLASH_REGEX = r'/$' TRAILING_SLASH_REGEX = r'/$'
urlpatterns = patterns( urlpatterns = patterns(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment