Skip to content

Commit

Permalink
Fixes #5407: Add direct link to secret on secrets list
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Dec 3, 2020
1 parent 22bb700 commit d75696b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-2.9.md
Expand Up @@ -6,6 +6,7 @@

* [#5383](https://github.com/netbox-community/netbox/issues/5383) - Fix setting user password via REST API
* [#5396](https://github.com/netbox-community/netbox/issues/5396) - Fix uniqueness constraint for virtual machine names
* [#5407](https://github.com/netbox-community/netbox/issues/5407) - Add direct link to secret on secrets list

---

Expand Down
14 changes: 11 additions & 3 deletions netbox/secrets/tables.py
Expand Up @@ -28,12 +28,20 @@ class Meta(BaseTable.Meta):

class SecretTable(BaseTable):
pk = ToggleColumn()
device = tables.LinkColumn()
id = tables.Column(
linkify=True
)
device = tables.Column(
linkify=True
)
role = tables.Column(
linkify=True
)
tags = TagColumn(
url_name='secrets:secret_list'
)

class Meta(BaseTable.Meta):
model = Secret
fields = ('pk', 'device', 'role', 'name', 'last_updated', 'hash', 'tags')
default_columns = ('pk', 'device', 'role', 'name', 'last_updated')
fields = ('pk', 'id', 'device', 'role', 'name', 'last_updated', 'hash', 'tags')
default_columns = ('pk', 'id', 'device', 'role', 'name', 'last_updated')

0 comments on commit d75696b

Please sign in to comment.