|
@@ -1,8 +1,7 @@
|
|
|
from dcim.models import Device, Interface, Location, Region, Site, SiteGroup
|
|
from dcim.models import Device, Interface, Location, Region, Site, SiteGroup
|
|
|
-from extras.models import Tag
|
|
|
|
|
from ipam.models import VLAN, VLANGroup
|
|
from ipam.models import VLAN, VLANGroup
|
|
|
from netbox.forms import NetBoxModelForm
|
|
from netbox.forms import NetBoxModelForm
|
|
|
-from utilities.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField, SlugField, StaticSelect
|
|
|
|
|
|
|
+from utilities.forms import DynamicModelChoiceField, SlugField, StaticSelect
|
|
|
from wireless.models import *
|
|
from wireless.models import *
|
|
|
|
|
|
|
|
__all__ = (
|
|
__all__ = (
|
|
@@ -86,18 +85,8 @@ class WirelessLANForm(NetBoxModelForm):
|
|
|
class Meta:
|
|
class Meta:
|
|
|
model = WirelessLAN
|
|
model = WirelessLAN
|
|
|
fields = [
|
|
fields = [
|
|
|
- 'ssid',
|
|
|
|
|
- 'group',
|
|
|
|
|
- 'description',
|
|
|
|
|
- 'region',
|
|
|
|
|
- 'site_group',
|
|
|
|
|
- 'site',
|
|
|
|
|
- 'vlan_group',
|
|
|
|
|
- 'vlan',
|
|
|
|
|
- 'auth_type',
|
|
|
|
|
- 'auth_cipher',
|
|
|
|
|
- 'auth_psk',
|
|
|
|
|
- 'tags',
|
|
|
|
|
|
|
+ 'ssid', 'group', 'description', 'region', 'site_group', 'site', 'vlan_group', 'vlan', 'auth_type',
|
|
|
|
|
+ 'auth_cipher', 'auth_psk', 'tags',
|
|
|
]
|
|
]
|
|
|
widgets = {
|
|
widgets = {
|
|
|
'auth_type': StaticSelect,
|
|
'auth_type': StaticSelect,
|