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

Add description field to SecretRole model (#3655)

This commit is contained in:
Jeremy Stretch
2019-12-10 13:03:09 -05:00
parent 7845d9b25f
commit 24bdd10b4f
5 changed files with 28 additions and 6 deletions

View File

@@ -19,16 +19,15 @@ SECRETROLE_ACTIONS = """
class SecretRoleTable(BaseTable):
pk = ToggleColumn()
name = tables.LinkColumn(verbose_name='Name')
name = tables.LinkColumn()
secret_count = tables.Column(verbose_name='Secrets')
slug = tables.Column(verbose_name='Slug')
actions = tables.TemplateColumn(
template_code=SECRETROLE_ACTIONS, attrs={'td': {'class': 'text-right noprint'}}, verbose_name=''
)
class Meta(BaseTable.Meta):
model = SecretRole
fields = ('pk', 'name', 'secret_count', 'slug', 'actions')
fields = ('pk', 'name', 'secret_count', 'description', 'slug', 'actions')
#