Skip to content

Commit

Permalink
Fixes #4052: Fix error when bulk importing interfaces to virtual mach…
Browse files Browse the repository at this point in the history
…ines
  • Loading branch information
jeremystretch committed Jan 30, 2020
1 parent d9b8bc0 commit 4b02d29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/release-notes/version-2.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* [#4043](https://github.com/netbox-community/netbox/issues/4043) - Fix toggling of required fields in custom scripts
* [#4049](https://github.com/netbox-community/netbox/issues/4049) - Restore missing `tags` field in IPAM service serializer
* [#4052](https://github.com/netbox-community/netbox/issues/4052) - Fix error when bulk importing interfaces to virtual machines
* [#4056](https://github.com/netbox-community/netbox/issues/4056) - Repair schema migration for Rack.outer_unit (from #3569)

---
Expand Down
2 changes: 1 addition & 1 deletion netbox/dcim/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2726,7 +2726,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

# Limit LAG choices to interfaces belonging to this device (or VC master)
if self.is_bound:
if self.is_bound and 'device' in self.data:
try:
device = self.fields['device'].to_python(self.data['device'])
except forms.ValidationError:
Expand Down

0 comments on commit 4b02d29

Please sign in to comment.