summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-20 12:59:06 -0700
committerAndrew Godwin2022-11-20 12:59:06 -0700
commitb4166f78bbb3e2d8a2572a80920a689730ed7d5c (patch)
tree98fce5dec410f0784886aa14d0d302e7e76ce84e
parent94d92fdf8a62c3cdc277d82c15a450f62ab7ee3b (diff)
downloadtakahe-b4166f78bbb3e2d8a2572a80920a689730ed7d5c.tar.gz
takahe-b4166f78bbb3e2d8a2572a80920a689730ed7d5c.tar.bz2
takahe-b4166f78bbb3e2d8a2572a80920a689730ed7d5c.zip
Cascade identity deletes to posts too
-rw-r--r--activities/models/post.py2
1 files changed, 1 insertions, 1 deletions
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",
)