summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDusty Phillips <dusty@gerolde.archlinux.org>2009-08-12 17:33:42 -0400
committerDusty Phillips <dusty@gerolde.archlinux.org>2009-08-12 17:33:42 -0400
commitffeec245afedb79953995cbb02dbe2746d13fc94 (patch)
tree3f49bc54efbde2df0a6a4438f8f95c3e308e5f87 /main/models.py
parent6bcf9709f20db8b8e3e40c16b20448f3899f3624 (diff)
parent88d83dfaa66d6a01621dcff61b441babdf4833ce (diff)
Merge branch 'master' of /srv/projects/git/archweb_dev
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index ebb0368d..580e1eec 100644
--- a/main/models.py
+++ b/main/models.py
@@ -62,6 +62,10 @@ class Mirror(models.Model):
def __unicode__(self):
return self.name
+ def supported_protocols(self):
+ protocols = MirrorProtocol.objects.filter(urls__mirror=self).distinct()
+ return ", ".join([p.protocol for p in protocols])
+
class MirrorProtocol(models.Model):
protocol = models.CharField(max_length=10, unique=True)
def __unicode__(self):