diff options
author | Dusty Phillips <dusty@gerolde.archlinux.org> | 2009-08-12 17:33:42 -0400 |
---|---|---|
committer | Dusty Phillips <dusty@gerolde.archlinux.org> | 2009-08-12 17:33:42 -0400 |
commit | ffeec245afedb79953995cbb02dbe2746d13fc94 (patch) | |
tree | 3f49bc54efbde2df0a6a4438f8f95c3e308e5f87 /main/models.py | |
parent | 6bcf9709f20db8b8e3e40c16b20448f3899f3624 (diff) | |
parent | 88d83dfaa66d6a01621dcff61b441babdf4833ce (diff) |
Merge branch 'master' of /srv/projects/git/archweb_dev
Diffstat (limited to 'main/models.py')
-rw-r--r-- | main/models.py | 4 |
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): |