diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-20 16:21:08 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-21 09:10:02 -0500 |
commit | 1b6cf5261c2a87c507fef290bf9d2af5606c8451 (patch) | |
tree | dcf1b37507ec58f2f9273213a38b3843f78a847d /urls.py | |
parent | 41dc37c8126f062257ce7d5fc8fcf84286b55a88 (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'), |