2021-10-12 12:27:12 -04:00
|
|
|
import django_tables2 as tables
|
|
|
|
|
2021-10-12 17:02:53 -04:00
|
|
|
from .models import WirelessLAN
|
2021-10-12 12:27:12 -04:00
|
|
|
from utilities.tables import BaseTable, TagColumn, ToggleColumn
|
|
|
|
|
|
|
|
__all__ = (
|
2021-10-12 17:02:53 -04:00
|
|
|
'WirelessLANTable',
|
2021-10-12 12:27:12 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-10-12 17:02:53 -04:00
|
|
|
class WirelessLANTable(BaseTable):
|
2021-10-12 12:27:12 -04:00
|
|
|
pk = ToggleColumn()
|
2021-10-12 17:02:53 -04:00
|
|
|
ssid = tables.Column(
|
2021-10-12 13:48:06 -04:00
|
|
|
linkify=True
|
2021-10-12 12:27:12 -04:00
|
|
|
)
|
|
|
|
tags = TagColumn(
|
2021-10-12 17:02:53 -04:00
|
|
|
url_name='wireless:wirelesslan_list'
|
2021-10-12 12:27:12 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
class Meta(BaseTable.Meta):
|
2021-10-12 17:02:53 -04:00
|
|
|
model = WirelessLAN
|
|
|
|
fields = ('pk', 'ssid', 'description', 'vlan')
|
|
|
|
default_columns = ('pk', 'ssid', 'description', 'vlan')
|