add delete button to computers table
This commit is contained in:
parent
0c34519bb1
commit
fec98db1b8
|
@ -1,4 +1,5 @@
|
|||
import django_tables2 as tables
|
||||
from django_tables2.utils import A
|
||||
|
||||
from core.tables import CoreTable
|
||||
|
||||
|
@ -14,6 +15,11 @@ class ComputersTable(CoreTable):
|
|||
user = tables.Column('User', linkify=True)
|
||||
installation_date = tables.Column()
|
||||
os = tables.Column()
|
||||
delete = tables.LinkColumn('device_delete',
|
||||
text='delete',
|
||||
args=[A('pk')], attrs={
|
||||
'a': {'class': 'delete material-icons', }
|
||||
})
|
||||
|
||||
class Meta(CoreTable.Meta):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue