mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Add power_panel_id field to PowerFeedFilterForm
This commit is contained in:
parent
d27d347d21
commit
7b6c104768
@ -3645,10 +3645,20 @@ class PowerFeedFilterForm(BootstrapMixin, CustomFieldFilterForm):
|
|||||||
api_url="/api/dcim/sites/",
|
api_url="/api/dcim/sites/",
|
||||||
value_field="slug",
|
value_field="slug",
|
||||||
filter_for={
|
filter_for={
|
||||||
|
'power_panel_id': 'site',
|
||||||
'rack_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(
|
rack_id = FilterChoiceField(
|
||||||
queryset=Rack.objects.all(),
|
queryset=Rack.objects.all(),
|
||||||
label='Rack',
|
label='Rack',
|
||||||
|
Loading…
Reference in New Issue
Block a user