mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-01 21:50:58 +02:00
16 lines
389 B
Python
16 lines
389 B
Python
import django_tables2 as tables
|
|
|
|
from core.tables import CoreTable
|
|
|
|
from .models import Backup
|
|
|
|
|
|
class BackupsTable(CoreTable):
|
|
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):
|
|
model = Backup
|