This commit is contained in:
nikolark committed 2014-12-30 12:45:48 +01:00
1 parent d8fb1e2146
commit 4b49ead512
1 file changed
+1
+1
View File
@@ -429,6 +429,7 @@ class Ip4Address(models.Model):
ping_avg_rtt = models.FloatField(null=True, blank=True)
def __unicode__(self):
# FIXME needs optimizing, runs a SQL query for each run
if self.interface_set.count() == 0:
return self.address
else: