diff options
-rw-r--r-- | bn_django/photos/urls.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bn_django/photos/urls.py b/bn_django/photos/urls.py index 8bbb509..c3cce03 100644 --- a/bn_django/photos/urls.py +++ b/bn_django/photos/urls.py @@ -9,10 +9,9 @@ info_dict = { 'extra_context': { 'admin_url': ADMIN_URL, urlpatterns = patterns('django.views.generic.list_detail', (r'^$', 'object_list', dict(info_dict, queryset=Gallery.objects.all(), - paginate_by= 10, allow_empty= True)), + paginate_by=35, allow_empty= True)), (r'^(?P<slug>[\d\w-]+)/$', 'object_detail', - dict(info_dict, queryset=Gallery.objects.all(), - paginate_by=35,slug_field='slug')), + 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', |