Fixes #21277: Record pre-change snapshot when adding devices to cluster in UI (#21424)

This commit is contained in:
Arthur Hanson
2026-02-13 02:41:41 -08:00
committed by GitHub
parent dc738c7102
commit 2330874a8c
+1
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()