feat(config_management): save_history method added to Config Group Software
ref: #605 #637
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user