diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-10 14:43:32 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-10 14:43:32 -0600 |
commit | 176d1619023e542cf25a9a52cc61df638df8dd67 (patch) | |
tree | 15f6c70752b7788fcae0edd6e55120ef08983f0e /news/urls.py | |
parent | 262f8f3749526a1ec04e208ba3e9945fc12f36ca (diff) |
Fix old news URLs not redirecting properlyrelease_2011-01-10
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news/urls.py')
-rw-r--r-- | news/urls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/news/urls.py b/news/urls.py index 548d80ea..d938ef58 100644 --- a/news/urls.py +++ b/news/urls.py @@ -4,11 +4,11 @@ urlpatterns = patterns('news.views', (r'^$', 'news_list', {}, 'news-list'), (r'^add/$', 'add'), (r'^preview/$', 'preview'), + # old news URLs, permanent redirect view so we don't break all links + (r'^(?P<object_id>\d+)/$', 'view_redirect'), (r'^(?P<slug>[-\w]+)/$', 'view'), (r'^(?P<slug>[-\w]+)/edit/$', 'edit'), (r'^(?P<slug>[-\w]+)/delete/$', 'delete'), - # old news URLs, permanent redirect view so we don't break all links - (r'^(?P<object_id>\d+)/$', 'view_redirect'), ) # vim: set ts=4 sw=4 et: |