Skip to content

Commit 59e185b

Browse files
committed
Fixes #6104: Fix location column on racks table
1 parent b5ad29e commit 59e185b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/release-notes/version-2.11.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Bug Fixes (from Beta)
66

77
* [#6100](https://github.com/netbox-community/netbox/issues/6100) - Fix VM interfaces table "add interfaces" link
8+
* [#6104](https://github.com/netbox-community/netbox/issues/6104) - Fix location column on racks table
89

910
---
1011

netbox/dcim/tables/racks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class RackTable(BaseTable):
7171
order_by=('_name',),
7272
linkify=True
7373
)
74-
group = tables.Column(
74+
location = tables.Column(
7575
linkify=True
7676
)
7777
site = tables.Column(
@@ -88,10 +88,10 @@ class RackTable(BaseTable):
8888
class Meta(BaseTable.Meta):
8989
model = Rack
9090
fields = (
91-
'pk', 'name', 'site', 'group', 'status', 'facility_id', 'tenant', 'role', 'serial', 'asset_tag', 'type',
91+
'pk', 'name', 'site', 'location', 'status', 'facility_id', 'tenant', 'role', 'serial', 'asset_tag', 'type',
9292
'width', 'u_height',
9393
)
94-
default_columns = ('pk', 'name', 'site', 'group', 'status', 'facility_id', 'tenant', 'role', 'u_height')
94+
default_columns = ('pk', 'name', 'site', 'location', 'status', 'facility_id', 'tenant', 'role', 'u_height')
9595

9696

9797
class RackDetailTable(RackTable):
@@ -113,11 +113,11 @@ class RackDetailTable(RackTable):
113113

114114
class Meta(RackTable.Meta):
115115
fields = (
116-
'pk', 'name', 'site', 'group', 'status', 'facility_id', 'tenant', 'role', 'serial', 'asset_tag', 'type',
116+
'pk', 'name', 'site', 'location', 'status', 'facility_id', 'tenant', 'role', 'serial', 'asset_tag', 'type',
117117
'width', 'u_height', 'device_count', 'get_utilization', 'get_power_utilization', 'tags',
118118
)
119119
default_columns = (
120-
'pk', 'name', 'site', 'group', 'status', 'facility_id', 'tenant', 'role', 'u_height', 'device_count',
120+
'pk', 'name', 'site', 'location', 'status', 'facility_id', 'tenant', 'role', 'u_height', 'device_count',
121121
'get_utilization', 'get_power_utilization',
122122
)
123123

0 commit comments

Comments
 (0)