mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #9132: Limit location options by selected site when creating a wireless link
This commit is contained in:
@@ -105,6 +105,9 @@ class WirelessLinkForm(NetBoxModelForm):
|
||||
)
|
||||
location_a = DynamicModelChoiceField(
|
||||
queryset=Location.objects.all(),
|
||||
query_params={
|
||||
'site_id': '$site_a',
|
||||
},
|
||||
required=False,
|
||||
label='Location',
|
||||
initial_params={
|
||||
@@ -142,6 +145,9 @@ class WirelessLinkForm(NetBoxModelForm):
|
||||
)
|
||||
location_b = DynamicModelChoiceField(
|
||||
queryset=Location.objects.all(),
|
||||
query_params={
|
||||
'site_id': '$site_b',
|
||||
},
|
||||
required=False,
|
||||
label='Location',
|
||||
initial_params={
|
||||
|
Reference in New Issue
Block a user