aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos/urls.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@charm.mit.edu>2008-02-10 23:53:40 -0500
committerBryan Newbold <bnewbold@charm.mit.edu>2008-02-10 23:53:40 -0500
commitf240080cefc05855c3836c284cc2f619117d1f3d (patch)
tree79cacac4118c2b7d5204f0730880a7ff98bf764d /bn_django/photos/urls.py
parentf6b6a7912dc984b7c9a0f74631f51a3ab44c15af (diff)
downloadbnewnet-f240080cefc05855c3836c284cc2f619117d1f3d.tar.gz
bnewnet-f240080cefc05855c3836c284cc2f619117d1f3d.zip
switched to slugs for photo sets; also call them sets. TODO: rename galleries sets in code
Diffstat (limited to 'bn_django/photos/urls.py')
-rw-r--r--bn_django/photos/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bn_django/photos/urls.py b/bn_django/photos/urls.py
index a413c3f..ffb7007 100644
--- a/bn_django/photos/urls.py
+++ b/bn_django/photos/urls.py
@@ -10,6 +10,8 @@ urlpatterns = patterns('django.views.generic.list_detail',
(r'^$', 'object_list',
dict(info_dict, queryset=Gallery.objects.all(),
paginate_by= 10, allow_empty= True)),
+ (r'^(?P<slug>[\d\w-]+)/$', 'object_detail',
+ dict(info_dict, queryset=Gallery.objects.all(), slug_field='slug')),
(r'^(?P<object_id>\d+)/$', 'object_detail',
dict(info_dict, queryset=Gallery.objects.all())),
(r'^detail/(?P<object_id>\d+)/$', 'object_detail',