]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/urls.py
Relaxes the question url a bit, but issues redirects to the correct url.
[osqa.git] / forum / urls.py
index 92c0d6bf6a18f1347d9af9c656fb49b4d1aeae48..5f3fbc5ebe857c460e30b999676990b80d33ddd7 100644 (file)
@@ -93,6 +93,7 @@ urlpatterns += patterns('',
 
                         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+)/?$' % _('questions/'), app.readers.question, name='question'),
                         url(r'^%s(?P<id>\d+)/(?P<slug>[\w-]*)$' % _('questions/'), app.readers.question, name='question'),
                         url(r'^%s(?P<id>\d+)/(?P<slug>[\w-]*)/(?P<answer>\d+)$' % _('questions/'), app.readers.question),