Skip to content

Commit

Permalink
Fixes netbox-community#1149: Port list does not populate when creatin…
Browse files Browse the repository at this point in the history
…g a console or power connection
  • Loading branch information
jeremystretch committed May 9, 2017
1 parent 385fba0 commit ac51858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/dcim/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ class ConsolePortConnectionForm(BootstrapMixin, forms.ModelForm):
queryset=ConsoleServerPort.objects.all(),
label='Port',
widget=APISelect(
api_url='/api/dcim/console-server-ports/?device_id={{device}}',
api_url='/api/dcim/console-server-ports/?device_id={{console_server}}',
disabled_indicator='connected_console',
)
)
Expand Down Expand Up @@ -1244,7 +1244,7 @@ class PowerPortConnectionForm(BootstrapMixin, forms.ModelForm):
queryset=PowerOutlet.objects.all(),
label='Outlet',
widget=APISelect(
api_url='/api/dcim/power-outlets/?device_id={{device}}',
api_url='/api/dcim/power-outlets/?device_id={{pdu}}',
disabled_indicator='connected_port'
)
)
Expand Down

0 comments on commit ac51858

Please sign in to comment.