TODO
This commit is contained in:
1 parent
d8fb1e2146
commit
4b49ead512
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user