summaryrefslogtreecommitdiff
path: root/mirrors/models.py
diff options
context:
space:
mode:
authorPyroPeter <abi1789@googlemail.com>2010-10-10 19:23:36 +0200
committerDan McGee <dan@archlinux.org>2010-10-13 18:25:54 -0500
commitc057b079c72a2329d8f365e07a0dce506c80e26b (patch)
treeaa62ec3c8cb9c34e7c7956c12b95b1d1aabc1a39 /mirrors/models.py
parent670aefbb14065e8f9539755bf58373accbc93c13 (diff)
Add has_ipv{4,6} to MirrorUrl
Dan: Add some more useful labels for use in the admin. Signed-off-by: PyroPeter <abi1789@googlemail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/models.py')
-rw-r--r--mirrors/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mirrors/models.py b/mirrors/models.py
index 44f081e6..f1286026 100644
--- a/mirrors/models.py
+++ b/mirrors/models.py
@@ -52,6 +52,8 @@ class MirrorUrl(models.Model):
url = models.CharField(max_length=255)
protocol = models.ForeignKey(MirrorProtocol, related_name="urls")
mirror = models.ForeignKey(Mirror, related_name="urls")
+ has_ipv4 = models.BooleanField("IPv4 capable", default=True)
+ has_ipv6 = models.BooleanField("IPv6 capable", default=False)
def __unicode__(self):
return self.url