From 4f60b26bf36d8ac12881b7f15fc9a7bcd165a017 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Wed, 10 Jul 2024 10:37:32 +0700 Subject: [PATCH] 16838 show extra_buttons if no actions defined --- netbox/netbox/tables/columns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/tables/columns.py b/netbox/netbox/tables/columns.py index 2576f70e5..499136033 100644 --- a/netbox/netbox/tables/columns.py +++ b/netbox/netbox/tables/columns.py @@ -249,7 +249,7 @@ class ActionsColumn(tables.Column): def render(self, record, table, **kwargs): # Skip dummy records (e.g. available VLANs) or those with no actions - if not getattr(record, 'pk', None) or not self.actions: + if not getattr(record, 'pk', None) or not (self.actions or self.extra_buttons): return '' model = table.Meta.model