mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-27 19:55:18 +02:00
13 lines
278 B
Python
13 lines
278 B
Python
import django_tables2 as tables
|
|
|
|
from .models import Device
|
|
|
|
|
|
class DevicesTable(tables.Table):
|
|
id = tables.Column(visible=False)
|
|
name = tables.Column('Device', linkify=True)
|
|
|
|
class Meta:
|
|
template_name = 'django_tables2/semantic.html'
|
|
model = Device
|