summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-02-08 09:29:31 -0600
committerDan McGee <dan@archlinux.org>2009-02-08 09:29:31 -0600
commit38c15509bbfad403154b5046a29e75da9d2153b1 (patch)
tree74be5c1ec57d4a3c2c6fd780f39a22b7444549ec
parent4091abf4f922190ed60a7ba7315fc4d14ae7f44e (diff)
Store IP address as a char field
Otherwise the netmask portion can get cut off because of the way Django by default limits IP Address fields to 15 characters. Oops. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index ec0d95e4..59de33fe 100644
--- a/main/models.py
+++ b/main/models.py
@@ -79,7 +79,7 @@ class MirrorUrl(models.Model):
class MirrorRsync(models.Model):
hostname = models.CharField(max_length=255)
- ip = models.IPAddressField()
+ ip = models.CharField(max_length=24)
mirror = models.ForeignKey(Mirror, related_name="rsync_ips")
def __unicode__(self):
return "%s (%s)" % (self.ip, self.hostname)