Ticket #14646: 14646_comment_notification_email_template_fix.2.diff

File 14646_comment_notification_email_template_fix.2.diff, 1.5 KB (added by fest, 13 years ago)

A better patch that shows user's name and e-mail even if comment was posted by authenticated user.

  • django/contrib/comments/templates/comments/comment_notification_email.txt

     
     1New comment on {{ content_object }} submitted on {{ comment.submit_date }}.
     2
     3Commenter's name: {{ comment.name }}
     4Commenter's email: {{ comment.email }}
     5Commenter's URL: {{ comment.user_url }}
     6
     7------------------------------------------
     8{{ comment.comment }}
  • docs/ref/contrib/comments/moderation.txt

     
    110110
    111111        If ``True``, any new comment on an object of this model which
    112112        survives moderation (i.e., is not deleted) will generate an
    113         email to site staff. Default value is ``False``.
     113        email to site staff. Default value is ``False``. The contents of the
     114        notification email are determined by the template
     115        ``comments/comment_notification_email.txt``, which receives a context
     116        containing the ``comment`` object and the ``content_object`` with which
     117        the comment is associated. This template may be overridden and
     118        customized to suit individual requirements.
    114119
    115120    .. attribute:: enable_field
    116121
Back to Top