mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 19:36:26 -06:00
Fixes #897: Fixed power connections CSV export
This commit is contained in:
parent
c589f40796
commit
06cc036bbe
@ -1110,8 +1110,8 @@ class PowerPort(models.Model):
|
|||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
# Used for connections export
|
# Used for connections export
|
||||||
def csv_format(self):
|
def to_csv(self):
|
||||||
return ','.join([
|
return csv_format([
|
||||||
self.power_outlet.device.identifier if self.power_outlet else None,
|
self.power_outlet.device.identifier if self.power_outlet else None,
|
||||||
self.power_outlet.name if self.power_outlet else None,
|
self.power_outlet.name if self.power_outlet else None,
|
||||||
self.device.identifier,
|
self.device.identifier,
|
||||||
|
Loading…
Reference in New Issue
Block a user