Allow tags to have hyphen (-) in the tag view URL.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 01 Feb 2011 19:37:27 +0530
changeset 549 3e8fc2ba0bde
parent 548 53b0071346c4
child 550 a606a40584f7
Allow tags to have hyphen (-) in the tag view URL.
pytask/taskapp/urls.py
--- a/pytask/taskapp/urls.py	Tue Feb 01 15:09:44 2011 +0530
+++ b/pytask/taskapp/urls.py	Tue Feb 01 19:37:27 2011 +0530
@@ -49,5 +49,5 @@
 # URL patterns specific to tags.
 urlpatterns += patterns('pytask.taskapp.views.task',
   url(r'^tag/suggest/$', 'suggest_task_tags', name='suggest_task_tags'),
-  url(r'^tag/view/(?P<tag_name>[\w. ]+)$', 'view_tag', name='view_tag'),
+  url(r'^tag/view/(?P<tag_name>[\w\-. ]+)$', 'view_tag', name='view_tag'),
 )