Cascade identity deletes to posts too
This commit is contained in:
parent
94d92fdf8a
commit
b4166f78bb
@ -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",
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user