]> git.openstreetmap.org Git - osqa.git/commitdiff
All plural in urls.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 25 May 2010 02:28:09 +0000 (02:28 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 25 May 2010 02:28:09 +0000 (02:28 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@322 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/urls.py

index 00894ef41ff1dd624ec3b6a9cbe9355e55aba9c6..9ba2ebdcd4d38828d12d3e79951aa95eb2aa7843 100644 (file)
@@ -76,7 +76,7 @@ urlpatterns += patterns('',
     url(r'^%s(?P<id>\d+)/' % _('convert/'), app.commands.convert_to_comment, name='convert_to_comment'),
     url(r'^%s(?P<id>\d+)/' % _('wikify/'), app.commands.wikify, name='wikify'),
 
-    #place general question item in the end of other operations
+    url(r'^%s(?P<id>\d+)/(?P<slug>[\w-]*)$' % _('question/'), 'django.views.generic.simple.redirect_to', {'url': '/questions/%(id)s/%(slug)s'}),
     url(r'^%s(?P<id>\d+)/(?P<slug>[\w-]*)$' % _('questions/'), app.readers.question, name='question'),
     url(r'^%s$' % _('tags/'), app.readers.tags, name='tags'),
     url(r'^%s(?P<tag>.*)/$' % _('tags/'), app.readers.tag, name='tag_questions'),