mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
Cascade identity deletes to posts too
This commit is contained in:
parent
94d92fdf8a
commit
b4166f78bb
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class Post(StatorModel):
|
||||||
# The author (attributedTo) of the post
|
# The author (attributedTo) of the post
|
||||||
author = models.ForeignKey(
|
author = models.ForeignKey(
|
||||||
"users.Identity",
|
"users.Identity",
|
||||||
on_delete=models.PROTECT,
|
on_delete=models.CASCADE,
|
||||||
related_name="posts",
|
related_name="posts",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue