Merge pull request #10246 from netbox-community/9481-child-parent-location
#9481 update child location whem move parent
This commit is contained in:
commit
d85b1c775f
|
|
@ -868,6 +868,7 @@ class Device(NetBoxModel, ConfigContextModel):
|
||||||
for device in devices:
|
for device in devices:
|
||||||
device.site = self.site
|
device.site = self.site
|
||||||
device.rack = self.rack
|
device.rack = self.rack
|
||||||
|
device.location = self.location
|
||||||
device.save()
|
device.save()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue