Ticket #12018: comments_request_context.diff

File comments_request_context.diff, 1.0 KB (added by Charlie DeTar, 15 years ago)
  • contrib/comments/moderation.py

     
    6060from django.core.mail import send_mail
    6161from django.contrib.comments import signals
    6262from django.db.models.base import ModelBase
    63 from django.template import Context, loader
     63from django.template import RequestContext, loader
    6464from django.contrib import comments
    6565from django.contrib.sites.models import Site
    6666
     
    235235            return
    236236        recipient_list = [manager_tuple[1] for manager_tuple in settings.MANAGERS]
    237237        t = loader.get_template('comments/comment_notification_email.txt')
    238         c = Context({ 'comment': comment,
     238        c = RequestContext(request, { 'comment': comment,
    239239                      'content_object': content_object })
    240240        subject = '[%s] New comment posted on "%s"' % (Site.objects.get_current().name,
    241241                                                          content_object)
Back to Top