소스 검색

16838 show extra_buttons if no actions defined

Arthur Hanson 1 년 전
부모
커밋
4f60b26bf3
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