summaryrefslogtreecommitdiffstats
path: root/public/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-14 01:00:11 -0600
committerDan McGee <dan@archlinux.org>2013-01-14 01:05:54 -0600
commit6f0ae6746baea657ee6d7c21ac0813a04f825443 (patch)
treebccc596760284ed7d04e08408ec7cf73edd50485 /public/views.py
parent5b8b6991b0b9f8174f153fe4b46376451b222cc1 (diff)
downloadarchweb-6f0ae6746baea657ee6d7c21ac0813a04f825443.tar.gz
archweb-6f0ae6746baea657ee6d7c21ac0813a04f825443.zip
Drop country column from mirror table
We now always look for this information at the URL level, not the mirror level. This simplifies quite a bit of code in and around the mirror views. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'public/views.py')
-rw-r--r--public/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/views.py b/public/views.py
index 65b0c31f..e15f5b89 100644
--- a/public/views.py
+++ b/public/views.py
@@ -85,7 +85,7 @@ def download(request):
mirror_urls = MirrorUrl.objects.select_related('mirror').filter(
protocol__default=True,
mirror__public=True, mirror__active=True, mirror__isos=True)
- sort_by = attrgetter('real_country.name', 'mirror.name')
+ sort_by = attrgetter('country.name', 'mirror.name')
mirror_urls = sorted(mirror_urls, key=sort_by)
context = {
'release': release,