[Solved] Function notifies commentor when the poster should get notified


For you to notify the POST owner, it should be sent this way:

recipient = new_comment.post.moderator

instead of

recipient = MyProfile.objects.get(user=request.user) 

This would send the notification to the moderator of the Post.

2

solved Function notifies commentor when the poster should get notified