mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
Fixed is_active table column
This commit is contained in:
parent
1edc73179a
commit
ace7e3b108
@ -59,6 +59,9 @@ class TagTable(BaseTable):
|
|||||||
class ConfigContextTable(BaseTable):
|
class ConfigContextTable(BaseTable):
|
||||||
pk = ToggleColumn()
|
pk = ToggleColumn()
|
||||||
name = tables.LinkColumn()
|
name = tables.LinkColumn()
|
||||||
|
is_active = tables.BooleanColumn(
|
||||||
|
verbose_name='Active'
|
||||||
|
)
|
||||||
actions = tables.TemplateColumn(
|
actions = tables.TemplateColumn(
|
||||||
template_code=CONFIGCONTEXT_ACTIONS,
|
template_code=CONFIGCONTEXT_ACTIONS,
|
||||||
attrs={'td': {'class': 'text-right'}},
|
attrs={'td': {'class': 'text-right'}},
|
||||||
@ -67,7 +70,7 @@ class ConfigContextTable(BaseTable):
|
|||||||
|
|
||||||
class Meta(BaseTable.Meta):
|
class Meta(BaseTable.Meta):
|
||||||
model = ConfigContext
|
model = ConfigContext
|
||||||
fields = ('pk', 'name', 'weight', 'active')
|
fields = ('pk', 'name', 'weight', 'is_active')
|
||||||
|
|
||||||
|
|
||||||
class ObjectChangeTable(BaseTable):
|
class ObjectChangeTable(BaseTable):
|
||||||
|
Loading…
Reference in New Issue
Block a user