Skip to content

Commit d0b8558

Browse files
committed
Changelog & cleanup for #6930
1 parent cef0d16 commit d0b8558

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/release-notes/version-3.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Enhancements
66

7+
* [#6930](https://github.com/netbox-community/netbox/issues/6930) - Add an optional "ID" column to all tables
78
* [#7668](https://github.com/netbox-community/netbox/issues/7668) - Add "view elevations" button to location view
89

910
### Bug Fixes

netbox/circuits/tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class CircuitTable(BaseTable):
101101
pk = ToggleColumn()
102102
cid = tables.Column(
103103
linkify=True,
104-
verbose_name='ID'
104+
verbose_name='Circuit ID'
105105
)
106106
provider = tables.Column(
107107
linkify=True

netbox/utilities/tables.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class BaseTable(tables.Table):
2323
2424
:param user: Personalize table display for the given user (optional). Has no effect if AnonymousUser is passed.
2525
"""
26+
id = tables.Column(
27+
linkify=True,
28+
verbose_name='ID'
29+
)
2630

2731
class Meta:
2832
attrs = {
@@ -133,11 +137,6 @@ def objects_count(self):
133137
self._objects_count = sum(1 for obj in self.data if hasattr(obj, 'pk'))
134138
return self._objects_count
135139

136-
id = tables.Column(
137-
linkify=True,
138-
verbose_name='ID'
139-
)
140-
141140

142141
#
143142
# Table columns

0 commit comments

Comments
 (0)