|
@@ -3923,13 +3923,23 @@ class ConnectCableToDeviceForm(BootstrapMixin, CustomFieldModelForm):
|
|
|
'group_id': '$termination_b_site_group',
|
|
'group_id': '$termination_b_site_group',
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
|
|
+ termination_b_location = DynamicModelChoiceField(
|
|
|
|
|
+ queryset=Location.objects.all(),
|
|
|
|
|
+ label='Location',
|
|
|
|
|
+ required=False,
|
|
|
|
|
+ null_option='None',
|
|
|
|
|
+ query_params={
|
|
|
|
|
+ 'site_id': '$termination_b_site'
|
|
|
|
|
+ }
|
|
|
|
|
+ )
|
|
|
termination_b_rack = DynamicModelChoiceField(
|
|
termination_b_rack = DynamicModelChoiceField(
|
|
|
queryset=Rack.objects.all(),
|
|
queryset=Rack.objects.all(),
|
|
|
label='Rack',
|
|
label='Rack',
|
|
|
required=False,
|
|
required=False,
|
|
|
null_option='None',
|
|
null_option='None',
|
|
|
query_params={
|
|
query_params={
|
|
|
- 'site_id': '$termination_b_site'
|
|
|
|
|
|
|
+ 'site_id': '$termination_b_site',
|
|
|
|
|
+ 'location_id': '$termination_b_location',
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
termination_b_device = DynamicModelChoiceField(
|
|
termination_b_device = DynamicModelChoiceField(
|