diff options
author | Andrew Godwin | 2022-11-20 12:59:06 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-20 12:59:06 -0700 |
commit | b4166f78bbb3e2d8a2572a80920a689730ed7d5c (patch) | |
tree | 98fce5dec410f0784886aa14d0d302e7e76ce84e | |
parent | 94d92fdf8a62c3cdc277d82c15a450f62ab7ee3b (diff) | |
download | takahe-b4166f78bbb3e2d8a2572a80920a689730ed7d5c.tar.gz takahe-b4166f78bbb3e2d8a2572a80920a689730ed7d5c.tar.bz2 takahe-b4166f78bbb3e2d8a2572a80920a689730ed7d5c.zip |
Cascade identity deletes to posts too
-rw-r--r-- | activities/models/post.py | 2 |
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", ) |