fix delete choice values

This commit is contained in:
pycook 2023-08-31 15:18:15 +08:00
parent 04fc588935
commit ff9af51465
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -39,6 +39,7 @@ pip-log.txt
nosetests.xml
.pytest_cache
cmdb-api/test-output
cmdb-api/api/uploaded_files
# Translations
*.mo

View File

@ -296,7 +296,7 @@ class AttributeManager(object):
if is_choice and choice_value:
self.add_choice_values(attr.id, attr.value_type, choice_value)
elif is_choice:
elif not is_choice:
self._del_choice_values(attr.id, attr.value_type)
try: