mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 19:19:22 -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
|
||||
|
||||
# Used for connections export
|
||||
def csv_format(self):
|
||||
return ','.join([
|
||||
def to_csv(self):
|
||||
return csv_format([
|
||||
self.power_outlet.device.identifier if self.power_outlet else None,
|
||||
self.power_outlet.name if self.power_outlet else None,
|
||||
self.device.identifier,
|
||||
|
Loading…
Reference in New Issue
Block a user