feat(itam): save_history method added to Software Category

ref: #605 #624
This commit is contained in:
2025-02-16 23:32:48 +09:30
parent 13425c432b
commit f815df41c4

View File

@ -117,6 +117,19 @@ class SoftwareCategory(SoftwareCommonFields, SaveHistory):
return self.name return self.name
def save_history(self, before: dict, after: dict) -> bool:
from itam.models.software_category_history import SoftwareCategoryHistory
history = super().save_history(
before = before,
after = after,
history_model = SoftwareCategoryHistory,
)
return history
class Software(SoftwareCommonFields, SaveHistory): class Software(SoftwareCommonFields, SaveHistory):