mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add tests for wireless
This commit is contained in:
@@ -36,6 +36,7 @@ class WirelessLANCSVForm(CustomFieldModelCSVForm):
|
||||
)
|
||||
vlan = CSVModelChoiceField(
|
||||
queryset=VLAN.objects.all(),
|
||||
required=False,
|
||||
to_field_name='name',
|
||||
help_text='Bridged VLAN'
|
||||
)
|
||||
|
@@ -62,6 +62,7 @@ class WirelessLANForm(BootstrapMixin, CustomFieldModelForm):
|
||||
class WirelessLinkForm(BootstrapMixin, CustomFieldModelForm):
|
||||
device_a = DynamicModelChoiceField(
|
||||
queryset=Device.objects.all(),
|
||||
required=False,
|
||||
label='Device A',
|
||||
initial_params={
|
||||
'interfaces': '$interface_a'
|
||||
@@ -78,6 +79,7 @@ class WirelessLinkForm(BootstrapMixin, CustomFieldModelForm):
|
||||
)
|
||||
device_b = DynamicModelChoiceField(
|
||||
queryset=Device.objects.all(),
|
||||
required=False,
|
||||
label='Device B',
|
||||
initial_params={
|
||||
'interfaces': '$interface_b'
|
||||
|
Reference in New Issue
Block a user