Ticket #14646: 14646_comment_notification_email_template_fix.diff

File 14646_comment_notification_email_template_fix.diff, 1.5 KB (added by tpherndon, 14 years ago)

Adds default comment_notification_email.txt template and updates documentation.

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

     
     1New comment on {{ content_object }} submitted on {{ comment.submit_date }}.
     2
     3Commenter's name: {{ comment.user_name }}
     4Commenter's email: {{ comment.user_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