Mercurial > public > madeira
diff band/views.py @ 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 | e2868ad47a1e |
children | 312f198e8958 |
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)