network_inventory/backups/tables.py

16 lines
389 B
Python
Raw Normal View History

2020-01-11 17:01:21 +01:00
import django_tables2 as tables
from core.tables import CoreTable
2020-01-11 17:01:21 +01:00
from .models import Backup
class BackupsTable(CoreTable):
2020-01-11 17:01:21 +01:00
id = tables.Column(visible=False)
name = tables.Column('Backup', linkify=True)
computer = tables.Column('Computer', linkify=True)
target_device = tables.ManyToManyColumn(linkify_item=True)
class Meta(CoreTable.Meta):
2020-01-11 17:01:21 +01:00
model = Backup