Closed David-Guillot closed 1 year ago
yes that seems like a great idea thanks! i notice i have put on_delete=models.CASCADE,
in the follow model's gfk but that's only tied to the django content type model since its a gfk. looks like i tried to do what you all did and didnt do it right. please send me a pr w/ that signal
Hi there,
In our use case we want to delete
Follow
objects when the followed object is deleted. We implemented that with Djangopre_delete
signal, and we thought that this piece of code was generic enough to maybe be integrated in actstream.What do you think @justquick ? Maybe it could be conditioned to a setting if you don't want this behavior to be applied to everyone.
If you agree I can submit a PR today :wink: