Cascade identity deletes to posts too

This commit is contained in:
Andrew Godwin 2022-11-20 12:59:06 -07:00
parent 94d92fdf8a
commit b4166f78bb

View File

@ -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",
)