From e3cdad0d2b870948d4d48a187277281b9e369050 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Thu, 23 Aug 2012 01:17:49 -0400 Subject: [PATCH] change url regexp to handle discussions in coursenames with dashes --- lms/djangoapps/django_comment_client/forum/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/django_comment_client/forum/urls.py b/lms/djangoapps/django_comment_client/forum/urls.py index 76957a82d8..974a0b2c7b 100644 --- a/lms/djangoapps/django_comment_client/forum/urls.py +++ b/lms/djangoapps/django_comment_client/forum/urls.py @@ -3,7 +3,7 @@ import django_comment_client.forum.views urlpatterns = patterns('django_comment_client.forum.views', url(r'users/(?P\w+)$', 'user_profile', name='user_profile'), - url(r'(?P\w+)/threads/(?P\w+)$', 'single_thread', name='single_thread'), - url(r'(?P\w+)/inline$', 'inline_discussion', name='inline_discussion'), + url(r'(?P[\w\-]+)/threads/(?P\w+)$', 'single_thread', name='single_thread'), + url(r'(?P[\w\-]+)/inline$', 'inline_discussion', name='inline_discussion'), url(r'', 'forum_form_discussion', name='forum_form_discussion'), )