summaryrefslogtreecommitdiffstats
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-30 06:34:24 +0200
committerDan McGee <dan@archlinux.org>2011-07-30 06:34:24 +0200
commit0f6c80e9a36bc5770e95543b4374c5ace4383cf5 (patch)
tree2208756e43047b698cf95ceadf0d012d54f6f649 /mirrors
parent2a73675f0ed894d57ed13c5799e988f8d10ccfe2 (diff)
downloadarchweb-0f6c80e9a36bc5770e95543b4374c5ace4383cf5.tar.gz
archweb-0f6c80e9a36bc5770e95543b4374c5ace4383cf5.tar.xz
mirrors: do protocol formatting in template
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/models.py b/mirrors/models.py
index 4f70e5a..a821784 100644
--- a/mirrors/models.py
+++ b/mirrors/models.py
@@ -42,7 +42,7 @@ class Mirror(models.Model):
def supported_protocols(self):
protocols = MirrorProtocol.objects.filter(
urls__mirror=self).order_by('protocol').distinct()
- return ", ".join([p.protocol for p in protocols])
+ return sorted(protocols)
def downstream(self):
return Mirror.objects.filter(upstream=self).order_by('name')