From a3dc4820167291b35359a97e68752117240c4fd6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 16 May 2010 14:02:09 -0500 Subject: 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 --- public/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public') diff --git a/public/views.py b/public/views.py index 51e55d12..a80c30ed 100644 --- a/public/views.py +++ b/public/views.py @@ -57,7 +57,7 @@ def download(request): mirror__public=True, mirror__active=True, mirror__isos=True ) 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_object_name="mirror_url", extra_context={"path": request.path}) -- cgit v1.2.3-54-g00ecf