Selaa lähdekoodia

Closes #9883: Linkify location column in power panels table

jeremystretch 3 vuotta sitten
vanhempi
commit
3af989763e
2 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 1 0
      docs/release-notes/version-3.2.md
  2. 6 1
      netbox/dcim/tables/power.py

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

@@ -9,6 +9,7 @@
 * [#9762](https://github.com/netbox-community/netbox/issues/9762) - Add `nat_outside` column to the IPAddress table
 * [#9825](https://github.com/netbox-community/netbox/issues/9825) - Add contacts column to virtual machines table
 * [#9881](https://github.com/netbox-community/netbox/issues/9881) - Increase granularity in utilization graph values
+* [#9883](https://github.com/netbox-community/netbox/issues/9883) - Linkify location column in power panels table
 
 ### Bug Fixes
 

+ 6 - 1
netbox/dcim/tables/power.py

@@ -21,6 +21,9 @@ class PowerPanelTable(NetBoxTable):
     site = tables.Column(
         linkify=True
     )
+    location = tables.Column(
+        linkify=True
+    )
     powerfeed_count = columns.LinkedCountColumn(
         viewname='dcim:powerfeed_list',
         url_params={'power_panel_id': 'pk'},
@@ -35,7 +38,9 @@ class PowerPanelTable(NetBoxTable):
 
     class Meta(NetBoxTable.Meta):
         model = PowerPanel
-        fields = ('pk', 'id', 'name', 'site', 'location', 'powerfeed_count', 'contacts', 'tags', 'created', 'last_updated',)
+        fields = (
+            'pk', 'id', 'name', 'site', 'location', 'powerfeed_count', 'contacts', 'tags', 'created', 'last_updated',
+        )
         default_columns = ('pk', 'name', 'site', 'location', 'powerfeed_count')