mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add missing newline and change wording of InventoryItem validation
This commit is contained in:
committed by
Jeremy Stretch
parent
41f631b65b
commit
a57378e780
@ -1165,7 +1165,7 @@ class InventoryItem(MPTTModel, ComponentModel):
|
||||
# Prevent moving InventoryItems with children
|
||||
first_child = self.get_children().first()
|
||||
if first_child and first_child.device != self.device:
|
||||
raise ValidationError("Cannot move an InventoryItem with dependent children")
|
||||
raise ValidationError("Cannot move an inventory item with dependent children")
|
||||
|
||||
# When moving an InventoryItem to another device, remove any associated component
|
||||
if self.component and self.component.device != self.device:
|
||||
|
Reference in New Issue
Block a user