Skip to content

Commit

Permalink
slug may contain a hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
baffolobill committed May 31, 2013
1 parent 3fa0fa9 commit fb7c399
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lbforum/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

forum_patterns = patterns(
'',
url(r'^(?P<forum_slug>\w+)/$', views.forum, name='lbforum_forum'),
url(r'^(?P<forum_slug>\w+)/(?P<topic_type>\w+)/$',
url(r'^(?P<forum_slug>[\w-]+)/$', views.forum, name='lbforum_forum'),
url(r'^(?P<forum_slug>[\w-]+)/(?P<topic_type>[\w-]+)/$',
views.forum, name='lbforum_forum'),
url(r'^(?P<forum_slug>\w+)/(?P<topic_type>\w+)/(?P<topic_type2>\w+)/$',
url(r'^(?P<forum_slug>[\w-]+)/(?P<topic_type>[\w-]+)/(?P<topic_type2>[\w-]+)/$',
views.forum, name='lbforum_forum'),
)

Expand All @@ -18,7 +18,7 @@
url('^(?P<topic_id>\d+)/$', views.topic, name='lbforum_topic'),
url('^(?P<topic_id>\d+)/delete/$', views.delete_topic,
name='lbforum_delete_topic'),
url('^(?P<topic_id>\d+)/update_topic_attr_as_not/(?P<attr>\w+)/$',
url('^(?P<topic_id>\d+)/update_topic_attr_as_not/(?P<attr>[\w-]+)/$',
views.update_topic_attr_as_not,
name='lbforum_update_topic_attr_as_not'),
url('^new/(?P<forum_id>\d+)/$', views.new_post, name='lbforum_new_topic'),
Expand Down

0 comments on commit fb7c399

Please sign in to comment.