Rename SSID model to WirelessLAN

This commit is contained in:
jeremystretch
2021-10-12 17:02:53 -04:00
parent 95fc490cde
commit 8a94779059
24 changed files with 119 additions and 126 deletions

View File

@@ -1,14 +1,14 @@
from extras.forms import CustomFieldModelCSVForm
from ipam.models import VLAN
from utilities.forms import CSVModelChoiceField
from wireless.models import SSID
from wireless.models import WirelessLAN
__all__ = (
'SSIDCSVForm',
'WirelessLANCSVForm',
)
class SSIDCSVForm(CustomFieldModelCSVForm):
class WirelessLANCSVForm(CustomFieldModelCSVForm):
vlan = CSVModelChoiceField(
queryset=VLAN.objects.all(),
to_field_name='name',
@@ -16,5 +16,5 @@ class SSIDCSVForm(CustomFieldModelCSVForm):
)
class Meta:
model = SSID
fields = ('name', 'description', 'vlan')
model = WirelessLAN
fields = ('ssid', 'description', 'vlan')