From 9aecda84a555a24eca98c195d061317b624efd77 Mon Sep 17 00:00:00 2001 From: Sebastian Reyes Espinosa Date: Sun, 20 Mar 2016 09:21:21 -0500 Subject: [PATCH] Improving a little bit the url pattern for the qa_tag URLConf --- qa/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/urls.py b/qa/urls.py index 6ba2433..05221e0 100644 --- a/qa/urls.py +++ b/qa/urls.py @@ -12,7 +12,7 @@ url(r'^vote/(?P\d+)/(?P\d+)/(?P\d+)/(?P\d+)/$', views.vote, name='qa_vote'), url(r'^comment/(?P\d+)/$', views.comment, name='comment'), url(r'^search/$', views.search, name='qa_search'), - url(r'^tag/(?P\w+)/$', views.tag, name='qa_tag'), + url(r'^tag/(?P[-\w]+)/$', views.tag, name='qa_tag'), url(r'^thumb/(?P\d+)/(?P\d+)/(?P\d+)/$', views.thumb, name='thumb'),