mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Fixes #9132: Limit location options by selected site when creating a wireless link
This commit is contained in:
parent
41244dc677
commit
118bf5152c
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#9132](https://github.com/netbox-community/netbox/issues/9132) - Limit location options by selected site when creating a wireless link
|
||||||
* [#9133](https://github.com/netbox-community/netbox/issues/9133) - Upgrade script should require Python 3.8 or later
|
* [#9133](https://github.com/netbox-community/netbox/issues/9133) - Upgrade script should require Python 3.8 or later
|
||||||
* [#9151](https://github.com/netbox-community/netbox/issues/9151) - Child prefix counts not annotated on aggregates list under RIR view
|
* [#9151](https://github.com/netbox-community/netbox/issues/9151) - Child prefix counts not annotated on aggregates list under RIR view
|
||||||
* [#9156](https://github.com/netbox-community/netbox/issues/9156) - Fix loading UserConfig data from fixtures
|
* [#9156](https://github.com/netbox-community/netbox/issues/9156) - Fix loading UserConfig data from fixtures
|
||||||
|
@ -105,6 +105,9 @@ class WirelessLinkForm(NetBoxModelForm):
|
|||||||
)
|
)
|
||||||
location_a = DynamicModelChoiceField(
|
location_a = DynamicModelChoiceField(
|
||||||
queryset=Location.objects.all(),
|
queryset=Location.objects.all(),
|
||||||
|
query_params={
|
||||||
|
'site_id': '$site_a',
|
||||||
|
},
|
||||||
required=False,
|
required=False,
|
||||||
label='Location',
|
label='Location',
|
||||||
initial_params={
|
initial_params={
|
||||||
@ -142,6 +145,9 @@ class WirelessLinkForm(NetBoxModelForm):
|
|||||||
)
|
)
|
||||||
location_b = DynamicModelChoiceField(
|
location_b = DynamicModelChoiceField(
|
||||||
queryset=Location.objects.all(),
|
queryset=Location.objects.all(),
|
||||||
|
query_params={
|
||||||
|
'site_id': '$site_b',
|
||||||
|
},
|
||||||
required=False,
|
required=False,
|
||||||
label='Location',
|
label='Location',
|
||||||
initial_params={
|
initial_params={
|
||||||
|
Loading…
Reference in New Issue
Block a user