mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
16838 show extra_buttons if no actions defined
This commit is contained in:
parent
0bc17850fd
commit
4f60b26bf3
@ -249,7 +249,7 @@ class ActionsColumn(tables.Column):
|
|||||||
|
|
||||||
def render(self, record, table, **kwargs):
|
def render(self, record, table, **kwargs):
|
||||||
# Skip dummy records (e.g. available VLANs) or those with no actions
|
# 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 ''
|
return ''
|
||||||
|
|
||||||
model = table.Meta.model
|
model = table.Meta.model
|
||||||
|
Loading…
Reference in New Issue
Block a user