From: hernani Date: Thu, 15 Jul 2010 08:54:27 +0000 (+0000) Subject: Reverses the order of two url patterns to force questions with answer ids to be evalu... X-Git-Tag: live~607 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/5e255e92892d7242a0eed4ecddc89d6aadec7d88 Reverses the order of two url patterns to force questions with answer ids to be evaluated first. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@527 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/urls.py b/forum/urls.py index faea61a..c7421e9 100644 --- a/forum/urls.py +++ b/forum/urls.py @@ -94,8 +94,8 @@ urlpatterns += patterns('', url(r'^%s(?P\d+)/(?P[\w-]*)$' % _('question/'), 'django.views.generic.simple.redirect_to', {'url': '/questions/%(id)s/%(slug)s'}), url(r'^%s(?P\d+)/?$' % _('questions/'), app.readers.question, name='question'), - url(r'^%s(?P\d+)/(?P.*)$' % _('questions/'), app.readers.question, name='question'), url(r'^%s(?P\d+)/(?P.*)/(?P\d+)$' % _('questions/'), app.readers.question), + url(r'^%s(?P\d+)/(?P.*)$' % _('questions/'), app.readers.question, name='question'), url(r'^%s$' % _('tags/'), app.readers.tags, name='tags'),