feat(config_management): Ability to add a host to a config group

!17 #42
This commit is contained in:
2024-06-03 06:25:30 +09:30
parent 746b7ac747
commit fff51e38d2
9 changed files with 235 additions and 28 deletions

View File

@ -125,6 +125,11 @@ class SaveHistory(models.Model):
item_parent_pk = self.team.pk
item_parent_class = self.team._meta.model_name
if self._meta.model_name == 'configgrouphosts':
item_parent_pk = self.group.id
item_parent_class = self.group._meta.model_name
if not before: