diff options
author | Dan McGee <dan@archlinux.org> | 2010-05-16 14:02:09 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-16 14:02:09 -0500 |
commit | a3dc4820167291b35359a97e68752117240c4fd6 (patch) | |
tree | 885f756d40432ed7bd94002042d44eb8fd57bc37 /public | |
parent | 0bdcc7ded06e260982a2f374318fb9abb51ff6e0 (diff) |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
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}) |