mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-21 00:11:39 +02: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
|
# Assign the selected Devices to the Cluster
|
||||||
for device in Device.objects.filter(pk__in=device_pks):
|
for device in Device.objects.filter(pk__in=device_pks):
|
||||||
|
device.snapshot()
|
||||||
device.cluster = cluster
|
device.cluster = cluster
|
||||||
device.save()
|
device.save()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user