1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #1200: Form validation error when connecting power ports to power outlets

This commit is contained in:
Jeremy Stretch
2017-05-18 12:11:14 -04:00
parent f7969d91b3
commit feac93389c

View File

@ -1211,7 +1211,7 @@ class PowerPortConnectionForm(BootstrapMixin, ChainedFieldsMixin, forms.ModelFor
)
power_outlet = ChainedModelChoiceField(
queryset=PowerOutlet.objects.all(),
chains={'device': 'device'},
chains={'device': 'pdu'},
label='Outlet',
widget=APISelect(
api_url='/api/dcim/power-outlets/?device_id={{pdu}}',