chg: Add in delete function for a MISP Object

pull/700/head
Tom King 2021-01-31 21:37:25 +00:00 committed by Raphaël Vinot
parent 9b80325cc0
commit 6d11164acf
1 changed files with 4 additions and 0 deletions

View File

@ -750,6 +750,10 @@ class MISPObject(AbstractMISP):
# Then we have no meta-category, template_uuid, description and template_version # Then we have no meta-category, template_uuid, description and template_version
pass pass
def delete(self):
"""Mark the attribute as deleted (soft delete)"""
self.deleted = True
@property @property
def disable_validation(self): def disable_validation(self):
self._strict = False self._strict = False