summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-16 21:02:09 +0200
committerDan McGee <dan@archlinux.org>2010-05-16 21:02:09 +0200
commita3dc4820167291b35359a97e68752117240c4fd6 (patch)
tree885f756d40432ed7bd94002042d44eb8fd57bc37 /public
parent0bdcc7ded06e260982a2f374318fb9abb51ff6e0 (diff)
downloadarchweb-a3dc4820167291b35359a97e68752117240c4fd6.tar.gz
archweb-a3dc4820167291b35359a97e68752117240c4fd6.tar.xz
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>
Diffstat (limited to 'public')
-rw-r--r--public/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/views.py b/public/views.py
index 51e55d1..a80c30e 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})