From 92837c93acc66056391dd0b98515b89f8fc49691 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 12 Nov 2012 21:37:08 -0600 Subject: 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 --- templates/mirrors/mirrors.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html index 0950520..c83d0d4 100644 --- a/templates/mirrors/mirrors.html +++ b/templates/mirrors/mirrors.html @@ -29,7 +29,7 @@ {{ mirror.get_tier_display }} {% if mirror.country %} {% endif %}{{ mirror.country.name }} {{ mirror.isos|yesno|capfirst }} - {{ mirror.supported_protocols|join:", " }} + {{ mirror.protocols|join:", " }} {% if user.is_authenticated %} {{ mirror.public|yesno|capfirst }} {{ mirror.active|yesno|capfirst }} -- cgit v1.2.3-24-g4f1b