feat(itam): save_history method added to Device

ref: #605 #616
This commit is contained in:
2025-02-16 22:48:55 +09:30
parent 6ccb63c921
commit 92fd22ae5c

View File

@ -696,6 +696,21 @@ class DeviceSoftware(DeviceCommonFields, SaveHistory):
)
def save_history(self, before: dict, after: dict) -> bool:
from itam.models.device_software_history import DeviceSoftwareHistory
history = super().save_history(
before = before,
after = after,
history_model = DeviceSoftwareHistory,
)
return history
class DeviceOperatingSystem(DeviceCommonFields, SaveHistory):