This commit is contained in:
pycook
2016-01-07 14:10:55 +08:00
committed by pycook
parent 41cbc1e5b8
commit b3d5557bc7
3 changed files with 5 additions and 2 deletions

View File

@@ -152,6 +152,7 @@ class AttributeManager(object):
choice_table = type_map["choice"].get(attr.value_type)
db.session.query(choice_table).filter(
choice_table.attr_id == attr_id).delete()
db.session.flush()
name = attr.attr_name
CIAttributeCache.clean(attr)
db.session.delete(attr)