diff options
Diffstat (limited to 'bn_django/photos/urls.py')
-rw-r--r-- | bn_django/photos/urls.py | 2 |
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', |