comparison 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
comparison
equal deleted inserted replaced
8:3e22a6fde2d2 9:dac690ab98b2
171 context_instance = RequestContext(request)) 171 context_instance = RequestContext(request))
172 172
173 ####################################################################### 173 #######################################################################
174 174
175 def videos_index(request): 175 def videos_index(request):
176 vidsets = Video_Set.objects.values('title', 'id').order_by('-id') 176 vidsets = Video_Set.objects.values('title', 'id').order_by('-date')
177 return render_to_response('band/videos.html', 177 return render_to_response('band/videos.html',
178 { 'vidsets' : vidsets }, 178 { 'vidsets' : vidsets },
179 context_instance = RequestContext(request)) 179 context_instance = RequestContext(request))
180 180
181 ####################################################################### 181 #######################################################################