1
0
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:
Jeremy Stretch
2017-02-16 15:17:13 -05:00
parent e8896fe238
commit 9d44d5d4e7

View File

@ -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,