Skip to content

Commit

Permalink
#1266: Exclude interfaces with existing connections or circuit termin…
Browse files Browse the repository at this point in the history
…ations when creating a new connection
  • Loading branch information
jeremystretch committed Jul 10, 2017
1 parent 8a87d60 commit 2d06388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netbox/circuits/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class CircuitTerminationForm(BootstrapMixin, ChainedFieldsMixin, forms.ModelForm
label='Interface',
widget=APISelect(
api_url='/api/dcim/interfaces/?device_id={{device}}&type=physical',
disabled_indicator='connection'
disabled_indicator='is_connected'
)
)

Expand Down
2 changes: 1 addition & 1 deletion netbox/dcim/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ class InterfaceConnectionForm(BootstrapMixin, ChainedFieldsMixin, forms.ModelFor
label='Interface',
widget=APISelect(
api_url='/api/dcim/interfaces/?device_id={{device_b}}&type=physical',
disabled_indicator='connection'
disabled_indicator='is_connected'
)
)

Expand Down

0 comments on commit 2d06388

Please sign in to comment.