code: def on_comment_posted(sender, comment, request, **kwargs):
      
      content_object = comment.content_object
  
      moderator = moderation.get_model_moderator(content_object.__class__)
      if moderator is None or comment.__class__ is not CommentModel:
          # No custom moderator means no email would be sent.
          # This still pass the comment to the default moderator.
          default_moderator.email(comment, content_object, request)
docs: Send email notification of a new comment to site staff when email notifications have been requested.