mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 11:08:18 -06:00
netbox-community/netbox#6930: Add object ID to tagged objects table in tag detail view
This commit is contained in:
parent
3b36dd2c81
commit
ceae4ed75b
@ -161,6 +161,11 @@ class TagTable(BaseTable):
|
|||||||
|
|
||||||
|
|
||||||
class TaggedItemTable(BaseTable):
|
class TaggedItemTable(BaseTable):
|
||||||
|
id = tables.Column(
|
||||||
|
verbose_name='ID',
|
||||||
|
linkify=lambda record: record.content_object.get_absolute_url(),
|
||||||
|
accessor='content_object__id'
|
||||||
|
)
|
||||||
content_type = ContentTypeColumn(
|
content_type = ContentTypeColumn(
|
||||||
verbose_name='Type'
|
verbose_name='Type'
|
||||||
)
|
)
|
||||||
@ -172,8 +177,7 @@ class TaggedItemTable(BaseTable):
|
|||||||
|
|
||||||
class Meta(BaseTable.Meta):
|
class Meta(BaseTable.Meta):
|
||||||
model = TaggedItem
|
model = TaggedItem
|
||||||
fields = ('content_type', 'content_object')
|
fields = ('id', 'content_type', 'content_object')
|
||||||
exclude = ('id', )
|
|
||||||
|
|
||||||
|
|
||||||
class ConfigContextTable(BaseTable):
|
class ConfigContextTable(BaseTable):
|
||||||
|
Loading…
Reference in New Issue
Block a user