Ip4Address: Dont require ping data

This commit is contained in:
nikolark committed 2014-12-29 23:10:57 +01:00
1 parent 42f2c79fa7
commit d8fb1e2146
1 file changed
+2 -2
+2 -2
View File
@@ -425,8 +425,8 @@ class DhcpCustomField(models.Model):
class Ip4Address(models.Model):
subnet = models.ForeignKey(Ip4Subnet)
address = models.IPAddressField()
last_contact = models.DateTimeField()
ping_avg_rtt = models.FloatField()
last_contact = models.DateTimeField(null=True, blank=True)
ping_avg_rtt = models.FloatField(null=True, blank=True)
def __unicode__(self):
if self.interface_set.count() == 0: