1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Use device identifier instead of name

This commit is contained in:
Jeremy Stretch
2016-06-16 13:39:28 -04:00
parent 943c7934f3
commit 2531366a10

View File

@ -296,7 +296,7 @@ class IPAddress(models.Model):
return ','.join([
str(self.address),
self.vrf.rd if self.vrf else '',
self.device.name if self.device else '',
self.device.identifier if self.device else '',
self.interface.name if self.interface else '',
'True' if getattr(self, 'primary_for', False) else '',
self.description,