16838 show extra_buttons if no actions defined

This commit is contained in:
Arthur Hanson 2024-07-10 10:37:32 +07:00 committed by Jeremy Stretch
parent 2a8bec1cbf
commit 30d711d24a

View File

@ -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