diff options
author | Bryan Newbold <bnewbold@animus.robocracy.org> | 2008-07-12 23:52:08 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@animus.robocracy.org> | 2008-07-12 23:52:08 -0700 |
commit | 9cd5c5ffb6f9be95964e152baad5ec703231c2fb (patch) | |
tree | 60f87ab61538fceee61d169fe3eb6142d565d4b4 /bn_django/photos | |
parent | 39c989e555ff558b66e03a126855f82e59566e09 (diff) | |
download | bnewnet-9cd5c5ffb6f9be95964e152baad5ec703231c2fb.tar.gz bnewnet-9cd5c5ffb6f9be95964e152baad5ec703231c2fb.zip |
photos in reverse chronology
Diffstat (limited to 'bn_django/photos')
-rw-r--r-- | bn_django/photos/urls.py | 4 |
1 files 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<slug>[\d\w-]+)/$', 'object_detail', dict(info_dict, queryset=Gallery.objects.all(), slug_field='slug')), (r'^(?P<object_id>\d+)/$', 'object_detail', |