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

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

View File

@ -421,7 +421,18 @@ class ConfigGroupHosts(GroupsCommonFields, SaveHistory):
return self.group
def save_history(self, before: dict, after: dict) -> bool:
from config_management.models.config_groups_hosts_history import ConfigGroupHostsHistory
history = super().save_history(
before = before,
after = after,
history_model = ConfigGroupHostsHistory,
)
return history