mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 06:13:36 -06:00
fix(plugins): Add accessor for is_loaded in TemplateColumn
Adds the `accessor` attribute with `tables.A('is_loaded')` to the `is_installed` column in the plugin's table. This ensures proper data access and improves the table's functionality. Fixes #19744
This commit is contained in:
parent
399d51b466
commit
f9159ad9bd
@ -61,6 +61,7 @@ class CatalogPluginTable(BaseTable):
|
|||||||
verbose_name=_('Local')
|
verbose_name=_('Local')
|
||||||
)
|
)
|
||||||
is_installed = columns.TemplateColumn(
|
is_installed = columns.TemplateColumn(
|
||||||
|
accessor=tables.A('is_loaded'),
|
||||||
verbose_name=_('Active'),
|
verbose_name=_('Active'),
|
||||||
template_code=PLUGIN_IS_INSTALLED
|
template_code=PLUGIN_IS_INSTALLED
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user