From: Scott Baker Date: Tue, 30 Jul 2013 00:33:21 +0000 (-0700) Subject: allow null ip address X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=76bbaf131feb39dcea1d8b70a039dba223929704;p=plstackapi.git allow null ip address --- diff --git a/planetstack/core/models/network.py b/planetstack/core/models/network.py index fddc6e6..f0b2846 100644 --- a/planetstack/core/models/network.py +++ b/planetstack/core/models/network.py @@ -44,7 +44,7 @@ class Network(PlCoreBase): class NetworkSliver(PlCoreBase): network = models.ForeignKey(Network) sliver = models.ForeignKey(Sliver) - ip = models.GenericIPAddressField(help_text="Sliver ip address", blank=True) + ip = models.GenericIPAddressField(help_text="Sliver ip address", blank=True, null=True) def save(self, *args, **kwds): if (not self.ip) and (NO_OBSERVER):