# HG changeset patch # User Brian Neal # Date 1395615638 18000 # Node ID 2db040e892856d4b59e550758e272baf79ded307 # Parent fbdcb7b80a1665deb292de697681ce83f0f253ba Order photo galleries by date added (reverse) instead of by id. diff -r fbdcb7b80a16 -r 2db040e89285 band/views.py --- 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)