mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 16:20:56 +08:00
fix delete choice values
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -39,6 +39,7 @@ pip-log.txt
|
|||||||
nosetests.xml
|
nosetests.xml
|
||||||
.pytest_cache
|
.pytest_cache
|
||||||
cmdb-api/test-output
|
cmdb-api/test-output
|
||||||
|
cmdb-api/api/uploaded_files
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
*.mo
|
*.mo
|
||||||
|
@@ -296,7 +296,7 @@ class AttributeManager(object):
|
|||||||
|
|
||||||
if is_choice and choice_value:
|
if is_choice and choice_value:
|
||||||
self.add_choice_values(attr.id, attr.value_type, 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)
|
self._del_choice_values(attr.id, attr.value_type)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user