Merge pull request #694 from tomking2/feature/object_delete

Add in delete function for a MISP Object
pull/700/head
Raphaël Vinot 2021-02-01 12:04:06 +01:00 committed by GitHub
commit e839dc4771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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