mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Introduce the wireless app and SSID model
This commit is contained in:
24
netbox/wireless/tables.py
Normal file
24
netbox/wireless/tables.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import django_tables2 as tables
|
||||
|
||||
from .models import SSID
|
||||
from utilities.tables import BaseTable, TagColumn, ToggleColumn
|
||||
|
||||
__all__ = (
|
||||
'SSIDTable',
|
||||
)
|
||||
|
||||
|
||||
class SSIDTable(BaseTable):
|
||||
pk = ToggleColumn()
|
||||
id = tables.Column(
|
||||
linkify=True,
|
||||
verbose_name='ID'
|
||||
)
|
||||
tags = TagColumn(
|
||||
url_name='dcim:cable_list'
|
||||
)
|
||||
|
||||
class Meta(BaseTable.Meta):
|
||||
model = SSID
|
||||
fields = ('pk', 'id', 'name', 'description', 'vlan')
|
||||
default_columns = ('pk', 'name', 'description', 'vlan')
|
||||
Reference in New Issue
Block a user