feat(itam): save_history method added to Software Category
ref: #605 #624
This commit is contained in:
@ -117,6 +117,19 @@ class SoftwareCategory(SoftwareCommonFields, SaveHistory):
|
||||
|
||||
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):
|
||||
|
Reference in New Issue
Block a user