summaryrefslogtreecommitdiff
path: root/mirrors/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-20 14:53:28 -0600
committerDan McGee <dan@archlinux.org>2013-01-20 15:01:13 -0600
commitdd8e94f69783365160bcbfda61a9bebea5a71324 (patch)
tree5f16fa99d53516906289350a4d10fac45da2a9a3 /mirrors/models.py
parentb642c93aff6bd22013615ae8b51b7a02763e261c (diff)
Lengthen the mirror rsync IP address field
Make it long enough to support a full-form IPv6 address with a subnet. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/models.py')
-rw-r--r--mirrors/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mirrors/models.py b/mirrors/models.py
index ca421d13..ec4a044d 100644
--- a/mirrors/models.py
+++ b/mirrors/models.py
@@ -98,11 +98,12 @@ class MirrorUrl(models.Model):
class MirrorRsync(models.Model):
- ip = models.CharField("IP", max_length=24)
+ # max length is 40 chars for full-form IPv6 addr + subnet
+ ip = models.CharField("IP", max_length=44)
mirror = models.ForeignKey(Mirror, related_name="rsync_ips")
def __unicode__(self):
- return "%s" % (self.ip)
+ return self.ip
class Meta:
verbose_name = 'mirror rsync IP'