summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-rw-r--r--news/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/news/urls.py b/news/urls.py
index 548d80e..d938ef5 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: