Create and send a "comment_removed" signal #7

Open
andymccurdy opened this Issue Jul 9, 2012 · 1 comment

1 participant

@andymccurdy
ella member

django.contrib.comments sends a comment_was_posted signal when a new comment is created. Marking a comment as removed (is_removed=True) should send a comment_removed signal for third party apps that need to take into account a comment being removed from the system.

@andymccurdy
ella member

The same signal should also be triggered if a comment is deleted. So perhaps a post_delete on comments.get_model() could also send this signal.

@andymccurdy andymccurdy pushed a commit that referenced this issue Jul 10, 2012
andy fix for #7. implementing a comment_removed signal for other apps to l…
…isten for. comment_removed is sent when a comment is deleted or when a comment's is_removed attribute is flipped from True to False.
eb34f76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment