diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 4c4a944a2..a2358ab6e 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -3645,10 +3645,20 @@ class PowerFeedFilterForm(BootstrapMixin, CustomFieldFilterForm): api_url="/api/dcim/sites/", value_field="slug", filter_for={ + 'power_panel_id': 'site', 'rack_id': 'site', } ) ) + power_panel_id = FilterChoiceField( + queryset=PowerPanel.objects.all(), + label='Power panel', + null_label='-- None --', + widget=APISelectMultiple( + api_url="/api/dcim/power-panels/", + null_option=True, + ) + ) rack_id = FilterChoiceField( queryset=Rack.objects.all(), label='Rack',