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:
20
netbox/wireless/forms/bulk_import.py
Normal file
20
netbox/wireless/forms/bulk_import.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from extras.forms import CustomFieldModelCSVForm
|
||||
from ipam.models import VLAN
|
||||
from utilities.forms import CSVModelChoiceField
|
||||
from wireless.models import SSID
|
||||
|
||||
__all__ = (
|
||||
'SSIDCSVForm',
|
||||
)
|
||||
|
||||
|
||||
class SSIDCSVForm(CustomFieldModelCSVForm):
|
||||
vlan = CSVModelChoiceField(
|
||||
queryset=VLAN.objects.all(),
|
||||
to_field_name='name',
|
||||
help_text='Bridged VLAN'
|
||||
)
|
||||
|
||||
class Meta:
|
||||
model = SSID
|
||||
fields = ('name', 'description', 'vlan')
|
Reference in New Issue
Block a user