21277 call snapshot in ClusterAddDevicesView to correctly record ObjectChange data

This commit is contained in:
Arthur
2026-02-12 15:09:59 -08:00
parent 0bb22dee0c
commit 487550d487

View File

@@ -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()