diff --git a/netbox/dcim/forms/models.py b/netbox/dcim/forms/models.py index 0eb99e8c6..da50b8f2a 100644 --- a/netbox/dcim/forms/models.py +++ b/netbox/dcim/forms/models.py @@ -880,6 +880,9 @@ class PowerFeedForm(NetBoxModelForm): location = DynamicModelChoiceField( queryset=Location.objects.all(), required=False, + query_params={ + 'site_id': '$site' + }, initial_params={ 'racks': '$rack' }