Mercurial > public > madeira
changeset 141:2db040e89285
Order photo galleries by date added (reverse) instead of by id.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 23 Mar 2014 18:00:38 -0500 |
parents | fbdcb7b80a16 |
children | b1fb80082f20 |
files | band/views.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/band/views.py Sun Mar 23 17:47:21 2014 -0500 +++ b/band/views.py Sun Mar 23 18:00:38 2014 -0500 @@ -18,7 +18,7 @@ def photos_index(request): - galleries = Gallery.objects.values('title', 'id').order_by('-id') + galleries = Gallery.objects.values('title', 'id').order_by('-date_added') photo_ids = Photo.objects.filter(is_public=True).values_list('id', flat=True)