diff options
author | Dan McGee <dan@archlinux.org> | 2011-07-29 23:34:24 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-29 23:34:24 -0500 |
commit | 0f6c80e9a36bc5770e95543b4374c5ace4383cf5 (patch) | |
tree | 2208756e43047b698cf95ceadf0d012d54f6f649 /mirrors | |
parent | 2a73675f0ed894d57ed13c5799e988f8d10ccfe2 (diff) |
mirrors: do protocol formatting in template
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r-- | mirrors/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/models.py b/mirrors/models.py index 4f70e5a9..a8217844 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') |