Skip to content

Commit

Permalink
forced list_images to sort by id (ascending)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark A. Valentin authored and Mark A. Valentin committed Apr 27, 2012
1 parent 172ccb4 commit aaae231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit aaae231

Please sign in to comment.