diff options
author | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-11-16 23:04:39 +0000 |
---|---|---|
committer | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-11-16 23:04:39 +0000 |
commit | 8a62cf766f44fa19fd3d5263e6e283a0b9db72b1 (patch) | |
tree | 29066ca7fcaf03a6877119a5e40792a9e2294f1a /src/lib/Server/Hostbase/hostbase/models.py | |
parent | 60d1e22e17b0065daeebe446e58e2c023e650bb7 (diff) | |
download | bcfg2-8a62cf766f44fa19fd3d5263e6e283a0b9db72b1.tar.gz bcfg2-8a62cf766f44fa19fd3d5263e6e283a0b9db72b1.tar.bz2 bcfg2-8a62cf766f44fa19fd3d5263e6e283a0b9db72b1.zip |
update to Hostbase models
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2502 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/hostbase/models.py')
-rw-r--r-- | src/lib/Server/Hostbase/hostbase/models.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/models.py b/src/lib/Server/Hostbase/hostbase/models.py index fb979ff5a..887df5b39 100644 --- a/src/lib/Server/Hostbase/hostbase/models.py +++ b/src/lib/Server/Hostbase/hostbase/models.py @@ -96,8 +96,8 @@ class IP(models.Model): ordering = ('ip_addr', ) class MX(models.Model): - priority = models.IntegerField() - mx = models.CharField(maxlength=64, core=True) + priority = models.IntegerField(blank=True) + mx = models.CharField(maxlength=64, core=True, blank=True) def __str__(self): return (" ".join([str(self.priority), self.mx])) @@ -133,7 +133,7 @@ class CName(models.Model): pass class Nameserver(models.Model): - name = models.CharField(maxlength=64) + name = models.CharField(maxlength=64, blank=True) def __str__(self): return self.name @@ -142,7 +142,7 @@ class Nameserver(models.Model): pass class ZoneAddress(models.Model): - ip_addr = models.IPAddressField() + ip_addr = models.IPAddressField(blank=True) def __str__(self): return self.ip_addr @@ -159,8 +159,8 @@ class Zone(models.Model): retry = models.IntegerField() refresh = models.IntegerField() ttl = models.IntegerField() - nameservers = models.ManyToManyField(Nameserver) - mxs = models.ManyToManyField(MX) + nameservers = models.ManyToManyField(Nameserver, blank=True) + mxs = models.ManyToManyField(MX, blank=True) addresses = models.ManyToManyField(ZoneAddress, blank=True) aux = models.TextField(blank=True) |