feat(config_management): save_history method added to Config Group Software

ref: #605 #637
This commit is contained in:
2025-02-16 20:37:27 +09:30
parent 4d9e06c55b
commit aa43c2e46a

View File

@ -520,3 +520,15 @@ class ConfigGroupSoftware(GroupsCommonFields, SaveHistory):
return self.config_group return self.config_group
def save_history(self, before: dict, after: dict) -> bool:
from config_management.models.config_groups_software_history import ConfigGroupSoftwareHistory
history = super().save_history(
before = before,
after = after,
history_model = ConfigGroupSoftwareHistory,
)
return history