Просмотр исходного кода

16838 show extra_buttons if no actions defined

Arthur Hanson 1 год назад
Родитель
Сommit
30d711d24a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/netbox/tables/columns.py

+ 1 - 1
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