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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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