From 9cd5c5ffb6f9be95964e152baad5ec703231c2fb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 12 Jul 2008 23:52:08 -0700 Subject: photos in reverse chronology --- bn_django/photos/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bn_django/photos/urls.py b/bn_django/photos/urls.py index c3cce03..6c7fc19 100644 --- a/bn_django/photos/urls.py +++ b/bn_django/photos/urls.py @@ -8,8 +8,8 @@ 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=35, allow_empty= True)), + dict(info_dict, queryset=Gallery.objects.order_by('-date'), + paginate_by=35, allow_empty= True)), (r'^(?P[\d\w-]+)/$', 'object_detail', dict(info_dict, queryset=Gallery.objects.all(), slug_field='slug')), (r'^(?P\d+)/$', 'object_detail', -- cgit v1.2.3