chg: Add in delete function for a MISP Object

pull/694/head
Tom King 2021-01-31 21:37:25 +00:00
parent 22bcda08d4
commit 3b5102f0dc
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
pass
def delete(self):
"""Mark the attribute as deleted (soft delete)"""
self.deleted = True
@property
def disable_validation(self):
self._strict = False