feat(itam): save_history method added to Device Model

ref: #605 #617
This commit is contained in:
2025-02-16 22:47:15 +09:30
parent 290a7de736
commit 4e5d2378d8

View File

@ -99,3 +99,16 @@ class DeviceModel(DeviceCommonFieldsName, SaveHistory):
return self.manufacturer.name + ' ' + self.name
return self.name
def save_history(self, before: dict, after: dict) -> bool:
from itam.models.device_model_history import DeviceModelHistory
history = super().save_history(
before = before,
after = after,
history_model = DeviceModelHistory
)
return history