diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-12 21:37:08 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-12 21:37:08 -0600 |
commit | 92837c93acc66056391dd0b98515b89f8fc49691 (patch) | |
tree | 0c4019df6b0bf3913b8956885782f493a6049d53 /templates/mirrors | |
parent | 2339f42ef0f95e55d99be47ed2327c3d127ebc29 (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/mirrors')
-rw-r--r-- | templates/mirrors/mirrors.html | 2 |
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> |