Ticket #12018: comments_request_context.diff
File comments_request_context.diff, 1.0 KB (added by , 15 years ago) |
---|
-
contrib/comments/moderation.py
60 60 from django.core.mail import send_mail 61 61 from django.contrib.comments import signals 62 62 from django.db.models.base import ModelBase 63 from django.template import Context, loader63 from django.template import RequestContext, loader 64 64 from django.contrib import comments 65 65 from django.contrib.sites.models import Site 66 66 … … 235 235 return 236 236 recipient_list = [manager_tuple[1] for manager_tuple in settings.MANAGERS] 237 237 t = loader.get_template('comments/comment_notification_email.txt') 238 c = Context({ 'comment': comment,238 c = RequestContext(request, { 'comment': comment, 239 239 'content_object': content_object }) 240 240 subject = '[%s] New comment posted on "%s"' % (Site.objects.get_current().name, 241 241 content_object)