From 5e255e92892d7242a0eed4ecddc89d6aadec7d88 Mon Sep 17 00:00:00 2001 From: hernani Date: Thu, 15 Jul 2010 08:54:27 +0000 Subject: [PATCH] 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 --- forum/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), -- 2.39.5