Only remove objects that are known

This commit is contained in:
Mouse Reeve 2021-04-22 09:25:12 -07:00
parent 9c87c91c62
commit e9dc63e296

View file

@ -176,7 +176,8 @@ class Remove(Add):
def action(self):
""" find and remove the activity object """
obj = self.object.to_model(save=False, allow_create=False)
obj.delete()
if obj:
obj.delete()
@dataclass(init=False)