Ensure protocol order is stable on download page

Sometimes http was first, other times ftp was first. Add an order by clause
to ensure it is the same for all mirrors.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-05-16 14:02:09 -05:00
parent 0bdcc7ded0
commit a3dc482016

View File

@ -57,7 +57,7 @@ def download(request):
mirror__public=True, mirror__active=True, mirror__isos=True mirror__public=True, mirror__active=True, mirror__isos=True
) )
return list_detail.object_list(request, return list_detail.object_list(request,
qset.order_by('mirror__country', 'mirror__name'), qset.order_by('mirror__country', 'mirror__name', 'protocol'),
template_name="public/download.html", template_name="public/download.html",
template_object_name="mirror_url", template_object_name="mirror_url",
extra_context={"path": request.path}) extra_context={"path": request.path})