Просмотр исходного кода

Fixes #3636: Add missing rack_group field to PowerFeed CSV export

Jeremy Stretch 6 лет назад
Родитель
Сommit
800df1ebbe
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      docs/release-notes/version-2.6.md
  2. 1 0
      netbox/dcim/models.py

+ 1 - 0
docs/release-notes/version-2.6.md

@@ -12,6 +12,7 @@
 * [#3460](https://github.com/netbox-community/netbox/issues/3460) - Extend upgrade script to validate Python dependencies
 * [#3460](https://github.com/netbox-community/netbox/issues/3460) - Extend upgrade script to validate Python dependencies
 * [#3596](https://github.com/netbox-community/netbox/issues/3596) - Prevent server error when reassigning a device to a new device bay
 * [#3596](https://github.com/netbox-community/netbox/issues/3596) - Prevent server error when reassigning a device to a new device bay
 * [#3635](https://github.com/netbox-community/netbox/issues/3635) - Add missing cache support for the circuits app
 * [#3635](https://github.com/netbox-community/netbox/issues/3635) - Add missing cache support for the circuits app
+* [#3636](https://github.com/netbox-community/netbox/issues/3636) - Add missing `rack_group` field to PowerFeed CSV export
 
 
 ---
 ---
 
 

+ 1 - 0
netbox/dcim/models.py

@@ -3122,6 +3122,7 @@ class PowerFeed(ChangeLoggedModel, CableTermination, CustomFieldModel):
         return (
         return (
             self.power_panel.site.name,
             self.power_panel.site.name,
             self.power_panel.name,
             self.power_panel.name,
+            self.rack.group.name if self.rack and self.rack.group else None,
             self.rack.name if self.rack else None,
             self.rack.name if self.rack else None,
             self.name,
             self.name,
             self.get_status_display(),
             self.get_status_display(),