add a delete button to the devices table

This commit is contained in:
Andreas Zweili 2020-08-03 17:15:37 +02:00
parent 1ddca51d77
commit 5aed28748a
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ class WarrantiesTable(CoreTable):
valid_from = tables.Column()
valid_until = tables.Column()
warranty_type = tables.Column()
delete = tables.LinkColumn('warranty_delete',
text='delete',
args=[A('pk')], attrs={
'a': {'class': 'delete material-icons', }
})
class Meta(CoreTable.Meta):
pass