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

Closes #2333: Added search filters for ConfigContexts

This commit is contained in:
Jeremy Stretch
2018-08-09 12:22:34 -04:00
parent a6c78b99c4
commit bf8eff11ea
7 changed files with 152 additions and 13 deletions

View File

@ -72,15 +72,10 @@ class ConfigContextTable(BaseTable):
is_active = BooleanColumn(
verbose_name='Active'
)
actions = tables.TemplateColumn(
template_code=CONFIGCONTEXT_ACTIONS,
attrs={'td': {'class': 'text-right'}},
verbose_name=''
)
class Meta(BaseTable.Meta):
model = ConfigContext
fields = ('pk', 'name', 'weight', 'is_active', 'description', 'actions')
fields = ('pk', 'name', 'weight', 'is_active', 'description')
class ObjectChangeTable(BaseTable):