Skip to content

Commit

Permalink
Fixes #3953: Fix validation error when creating child devices
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jan 17, 2020
1 parent c6eb40d commit 439fa73
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
Expand Up @@ -3,6 +3,7 @@
## Bug Fixes

* [#3951](https://github.com/netbox-community/netbox/issues/3951) - Fix exception in webhook worker due to missing constant
* [#3953](https://github.com/netbox-community/netbox/issues/3953) - Fix validation error when creating child devices

---

Expand Down
2 changes: 1 addition & 1 deletion netbox/dcim/models/__init__.py
Expand Up @@ -1464,7 +1464,7 @@ def clean(self):

try:
# Child devices cannot be assigned to a rack face/unit
if self.device_type.is_child_device and self.face is not None:
if self.device_type.is_child_device and self.face:
raise ValidationError({
'face': "Child device types cannot be assigned to a rack face. This is an attribute of the "
"parent device."
Expand Down

0 comments on commit 439fa73

Please sign in to comment.