Explorar o código

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

Arthur Hanson hai 2 meses
pai
achega
2330874a8c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      netbox/virtualization/views.py

+ 1 - 0
netbox/virtualization/views.py

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