mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
Bind location field to selected site
This commit is contained in:
parent
7ca12bb1ad
commit
abdc4855f2
@ -880,6 +880,9 @@ class PowerFeedForm(NetBoxModelForm):
|
||||
location = DynamicModelChoiceField(
|
||||
queryset=Location.objects.all(),
|
||||
required=False,
|
||||
query_params={
|
||||
'site_id': '$site'
|
||||
},
|
||||
initial_params={
|
||||
'racks': '$rack'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user