Only remove objects that are known
This commit is contained in:
parent
9c87c91c62
commit
e9dc63e296
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user