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:
parent
0bdcc7ded0
commit
a3dc482016
@ -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})
|
||||||
|
Loading…
Reference in New Issue
Block a user