1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Changelog & cleanup for #6930

This commit is contained in:
jeremystretch
2021-11-02 16:24:28 -04:00
parent cef0d168a5
commit d0b85586b9
3 changed files with 6 additions and 6 deletions

View File

@ -4,6 +4,7 @@
### Enhancements ### Enhancements
* [#6930](https://github.com/netbox-community/netbox/issues/6930) - Add an optional "ID" column to all tables
* [#7668](https://github.com/netbox-community/netbox/issues/7668) - Add "view elevations" button to location view * [#7668](https://github.com/netbox-community/netbox/issues/7668) - Add "view elevations" button to location view
### Bug Fixes ### Bug Fixes

View File

@ -101,7 +101,7 @@ class CircuitTable(BaseTable):
pk = ToggleColumn() pk = ToggleColumn()
cid = tables.Column( cid = tables.Column(
linkify=True, linkify=True,
verbose_name='ID' verbose_name='Circuit ID'
) )
provider = tables.Column( provider = tables.Column(
linkify=True linkify=True

View File

@ -23,6 +23,10 @@ class BaseTable(tables.Table):
:param user: Personalize table display for the given user (optional). Has no effect if AnonymousUser is passed. :param user: Personalize table display for the given user (optional). Has no effect if AnonymousUser is passed.
""" """
id = tables.Column(
linkify=True,
verbose_name='ID'
)
class Meta: class Meta:
attrs = { attrs = {
@ -133,11 +137,6 @@ class BaseTable(tables.Table):
self._objects_count = sum(1 for obj in self.data if hasattr(obj, 'pk')) self._objects_count = sum(1 for obj in self.data if hasattr(obj, 'pk'))
return self._objects_count return self._objects_count
id = tables.Column(
linkify=True,
verbose_name='ID'
)
# #
# Table columns # Table columns