Permalink
Browse files

forced list_images to sort by id (ascending)

  • Loading branch information...
Mark A. Valentin Mark A. Valentin
Mark A. Valentin authored and Mark A. Valentin committed Apr 27, 2012
1 parent 172ccb4 commit aaae231f4d23332bc7b07f5c0873bfd7b8ee6e10
Showing with 1 addition and 1 deletion.
  1. +1 −1 image/views.py
View
@@ -87,7 +87,7 @@ def view_image(request, id):
def list_images(request, page=0):
return render_to_response('list_images.html',
{ 'page':page,
- 'images': Image.objects.all(),
+ 'images': Image.objects.order_by('id'),
'settings': settings},
context_instance=RequestContext(request))

0 comments on commit aaae231

Please sign in to comment.