Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

forced list_images to sort by id (ascending)

  • Loading branch information...
commit aaae231f4d23332bc7b07f5c0873bfd7b8ee6e10 1 parent 172ccb4
Mark A. Valentin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  image/views.py
View
2  image/views.py
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.