mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-17 22:37:46 +01:00
21277 call snapshot in ClusterAddDevicesView to correctly record ObjectChange data
This commit is contained in:
@@ -320,6 +320,7 @@ class ClusterAddDevicesView(generic.ObjectEditView):
|
||||
|
||||
# Assign the selected Devices to the Cluster
|
||||
for device in Device.objects.filter(pk__in=device_pks):
|
||||
device.snapshot()
|
||||
device.cluster = cluster
|
||||
device.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user