mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #897: Fixed power connections CSV export
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user