From b4166f78bbb3e2d8a2572a80920a689730ed7d5c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 20 Nov 2022 12:59:06 -0700 Subject: Cascade identity deletes to posts too --- activities/models/post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activities/models/post.py b/activities/models/post.py index 25afdda..c3de16f 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -70,7 +70,7 @@ class Post(StatorModel): # The author (attributedTo) of the post author = models.ForeignKey( "users.Identity", - on_delete=models.PROTECT, + on_delete=models.CASCADE, related_name="posts", ) -- cgit v1.2.3