feat(itam): save_history method added to Device Type

ref: #605 #620
This commit is contained in:
2025-02-16 23:08:47 +09:30
parent e8e3939de7
commit fa0a81e835

View File

@ -103,6 +103,19 @@ class DeviceType(DeviceCommonFieldsName, SaveHistory):
return self.name
def save_history(self, before: dict, after: dict) -> bool:
from itam.models.device_type_history import DeviceTypeHistory
history = super().save_history(
before = before,
after = after,
history_model = DeviceTypeHistory,
)
return history
class Device(DeviceCommonFieldsName, SaveHistory):