From 38c15509bbfad403154b5046a29e75da9d2153b1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 8 Feb 2009 09:29:31 -0600 Subject: 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 --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/models.py b/main/models.py index ec0d95e..59de33f 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) -- cgit v1.2.3-24-g4f1b