|
@@ -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={
|