fix(api): CIType template import

This commit is contained in:
pycook 2024-03-29 14:20:56 +08:00
parent 9793734655
commit 7f5e5a0921
1 changed files with 2 additions and 0 deletions

View File

@ -1305,6 +1305,8 @@ class CITypeTemplateManager(object):
_group = copy.deepcopy(group)
_group.pop('attributes', None)
_group.pop('id', None)
_group.pop('inherited', None)
_group.pop('inherited_from', None)
existed = CITypeAttributeGroup.get_by(name=_group['name'],
type_id=type_id_map.get(_group['type_id'], _group['type_id']),
first=True, to_dict=False)