Fixes #3463: Correct CSV headers for exported power feeds

This commit is contained in:
Jeremy Stretch 2019-10-09 15:25:31 -04:00
parent 99f7cfcbd3
commit 6cdeb0ed95
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ v2.6.6 (FUTURE)
## Bug Fixes ## Bug Fixes
* [#3463](https://github.com/netbox-community/netbox/issues/3463) - Correct CSV headers for exported power feeds
* [#3571](https://github.com/netbox-community/netbox/issues/3571) - Prevent erroneous redirects when editing tags * [#3571](https://github.com/netbox-community/netbox/issues/3571) - Prevent erroneous redirects when editing tags
* [#3573](https://github.com/netbox-community/netbox/issues/3573) - Ensure consistent display of changelog retention period * [#3573](https://github.com/netbox-community/netbox/issues/3573) - Ensure consistent display of changelog retention period
* [#3574](https://github.com/netbox-community/netbox/issues/3574) - Change `device` to `parent` in interface editing VLAN filtering logic * [#3574](https://github.com/netbox-community/netbox/issues/3574) - Change `device` to `parent` in interface editing VLAN filtering logic

View File

@ -3108,6 +3108,7 @@ class PowerFeed(ChangeLoggedModel, CableTermination, CustomFieldModel):
def to_csv(self): def to_csv(self):
return ( return (
self.power_panel.site.name,
self.power_panel.name, self.power_panel.name,
self.rack.name if self.rack else None, self.rack.name if self.rack else None,
self.name, self.name,