summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-12 21:37:08 -0600
committerDan McGee <dan@archlinux.org>2012-11-12 21:37:08 -0600
commit92837c93acc66056391dd0b98515b89f8fc49691 (patch)
tree0c4019df6b0bf3913b8956885782f493a6049d53 /templates
parent2339f42ef0f95e55d99be47ed2327c3d127ebc29 (diff)
Prefetch the available protocols on the mirror overview page
Otherwise we are doing one query per mirror, which at this point is over 100 separate queries. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/mirrors/mirrors.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html
index 0950520d..c83d0d43 100644
--- a/templates/mirrors/mirrors.html
+++ b/templates/mirrors/mirrors.html
@@ -29,7 +29,7 @@
<td>{{ mirror.get_tier_display }}</td>
<td>{% if mirror.country %}<img src="{{ mirror.country.flag }}" alt=""/> {% endif %}{{ mirror.country.name }}</td>
<td>{{ mirror.isos|yesno|capfirst }}</td>
- <td class="wrap">{{ mirror.supported_protocols|join:", " }}</td>
+ <td class="wrap">{{ mirror.protocols|join:", " }}</td>
{% if user.is_authenticated %}
<td>{{ mirror.public|yesno|capfirst }}</td>
<td>{{ mirror.active|yesno|capfirst }}</td>