diff mysite/band/views.py @ 9:dac690ab98b2

Display video sets on index page by date in descending order. Allow the video set date to be edited.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Dec 2009 21:47:08 +0000
parents e602b5302b94
children a404f93a68d3
line wrap: on
line diff
--- a/mysite/band/views.py	Tue Jun 02 00:47:37 2009 +0000
+++ b/mysite/band/views.py	Sun Dec 13 21:47:08 2009 +0000
@@ -173,7 +173,7 @@
 #######################################################################
 
 def videos_index(request):
-   vidsets = Video_Set.objects.values('title', 'id').order_by('-id')
+   vidsets = Video_Set.objects.values('title', 'id').order_by('-date')
    return render_to_response('band/videos.html',
          { 'vidsets' : vidsets },
          context_instance = RequestContext(request))