mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Fixes #897: Fixed power connections CSV export
This commit is contained in:
parent
e8896fe238
commit
9d44d5d4e7
@ -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