Make static tab url pattern less greedy

* should fix links without trailing slash
This commit is contained in:
Victor Shnayder
2012-09-21 15:05:50 -04:00
parent a4d4a3b022
commit 8a57093309

View File

@@ -204,7 +204,7 @@ if settings.COURSEWARE_ENABLED:
)
urlpatterns += (
# This MUST be the last view in the courseware--it's a catch-all for custom tabs.
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/(?P<tab_slug>.*)$',
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/(?P<tab_slug>[^/]+)$',
'courseware.views.static_tab', name="static_tab"),
)