1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
2021-10-12 17:06:31 -04:00

24 lines
535 B
Python

import django_tables2 as tables
from .models import WirelessLAN
from utilities.tables import BaseTable, TagColumn, ToggleColumn
__all__ = (
'WirelessLANTable',
)
class WirelessLANTable(BaseTable):
pk = ToggleColumn()
ssid = tables.Column(
linkify=True
)
tags = TagColumn(
url_name='wireless:wirelesslan_list'
)
class Meta(BaseTable.Meta):
model = WirelessLAN
fields = ('pk', 'ssid', 'description', 'vlan')
default_columns = ('pk', 'ssid', 'description', 'vlan')