diff options
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: |