summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-20 16:21:08 -0500
committerDan McGee <dan@archlinux.org>2010-09-21 09:10:02 -0500
commit1b6cf5261c2a87c507fef290bf9d2af5606c8451 (patch)
treedcf1b37507ec58f2f9273213a38b3843f78a847d /urls.py
parent41dc37c8126f062257ce7d5fc8fcf84286b55a88 (diff)
Auto-populate slug on news item creation
And make sure it is unique through a few queries and some magic. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index 5ff57970..00d0986f 100644
--- a/urls.py
+++ b/urls.py
@@ -69,7 +69,7 @@ urlpatterns = patterns('',
(r'^news/(?P<slug>[-\w]+)/$', 'news.views.view'),
(r'^news/(?P<slug>[-\w]+)/edit/$', 'news.views.edit'),
(r'^news/(?P<slug>[-\w]+)/delete/$', 'news.views.delete'),
- (r'^news/$', 'news.views.list', {}, 'news-list'),
+ (r'^news/$', 'news.views.news_list', {}, 'news-list'),
(r'^mirrors/$', 'devel.views.mirrorlist', {}, 'mirrors-list'),