Coverage for apis_core/apis_entities/tables.py: 0%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-16 07:42 +0000

1from apis_core.generic.tables import ActionColumn, GenericTable 

2 

3 

4class DuplicateColumn(ActionColumn): 

5 """ 

6 A column showing a view button 

7 """ 

8 

9 template_name = "columns/duplicate.html" 

10 permission = "create" 

11 

12 

13class AbstractEntityTable(GenericTable): 

14 noduplicate = DuplicateColumn() 

15 

16 class Meta(GenericTable.Meta): 

17 sequence = ("...", "view", "edit", "delete", "noduplicate")