]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/urls.py
Reverses the order of two url patterns to force questions with answer ids to be evalu...
[osqa.git] / forum / urls.py
index faea61a466ede699cfea1e42e657cfa2d577841b..c7421e94c8a740c84e0e1d670403aeb831eb4869 100644 (file)
@@ -94,8 +94,8 @@ 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>.*)$' % _('questions/'), app.readers.question, name='question'),
                         url(r'^%s(?P<id>\d+)/(?P<slug>.*)/(?P<answer>\d+)$' % _('questions/'), app.readers.question),
+                        url(r'^%s(?P<id>\d+)/(?P<slug>.*)$' % _('questions/'), app.readers.question, name='question'),
 
 
                         url(r'^%s$' % _('tags/'), app.readers.tags, name='tags'),