mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
PEP8 fix; removed commented out code
This commit is contained in:
parent
a621912396
commit
24f062007f
@ -1620,7 +1620,7 @@ class InterfaceForm(BootstrapMixin, forms.ModelForm, ChainedFieldsMixin):
|
|||||||
required=False,
|
required=False,
|
||||||
label='Untagged VLAN',
|
label='Untagged VLAN',
|
||||||
widget=APISelect(
|
widget=APISelect(
|
||||||
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',# display_field='display_name'
|
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
tagged_vlans = ChainedModelMultipleChoiceField(
|
tagged_vlans = ChainedModelMultipleChoiceField(
|
||||||
@ -1632,7 +1632,7 @@ class InterfaceForm(BootstrapMixin, forms.ModelForm, ChainedFieldsMixin):
|
|||||||
required=False,
|
required=False,
|
||||||
label='Tagged VLANs',
|
label='Tagged VLANs',
|
||||||
widget=APISelectMultiple(
|
widget=APISelectMultiple(
|
||||||
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',# display_field='display_name'
|
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1751,7 +1751,7 @@ class InterfaceCreateForm(ComponentForm, ChainedFieldsMixin):
|
|||||||
required=False,
|
required=False,
|
||||||
label='Untagged VLAN',
|
label='Untagged VLAN',
|
||||||
widget=APISelect(
|
widget=APISelect(
|
||||||
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',# display_field='display_name'
|
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
tagged_vlans = ChainedModelMultipleChoiceField(
|
tagged_vlans = ChainedModelMultipleChoiceField(
|
||||||
@ -1763,7 +1763,7 @@ class InterfaceCreateForm(ComponentForm, ChainedFieldsMixin):
|
|||||||
required=False,
|
required=False,
|
||||||
label='Tagged VLANs',
|
label='Tagged VLANs',
|
||||||
widget=APISelectMultiple(
|
widget=APISelectMultiple(
|
||||||
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',# display_field='display_name'
|
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1856,7 +1856,7 @@ class InterfaceBulkEditForm(BootstrapMixin, BulkEditForm, ChainedFieldsMixin):
|
|||||||
required=False,
|
required=False,
|
||||||
label='Untagged VLAN',
|
label='Untagged VLAN',
|
||||||
widget=APISelect(
|
widget=APISelect(
|
||||||
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',# display_field='display_name'
|
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
tagged_vlans = ChainedModelMultipleChoiceField(
|
tagged_vlans = ChainedModelMultipleChoiceField(
|
||||||
@ -1868,7 +1868,7 @@ class InterfaceBulkEditForm(BootstrapMixin, BulkEditForm, ChainedFieldsMixin):
|
|||||||
required=False,
|
required=False,
|
||||||
label='Tagged VLANs',
|
label='Tagged VLANs',
|
||||||
widget=APISelectMultiple(
|
widget=APISelectMultiple(
|
||||||
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',# display_field='display_name'
|
api_url='/api/ipam/vlans/?site_id={{site}}&group_id={{vlan_group}}',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user