comparison messages/forms.py @ 808:0f0ba45704b7

Private message refactor: fix reverse() for notification email.
author Brian Neal <bgneal@gmail.com>
date Mon, 01 Sep 2014 16:38:06 -0500
parents 95b3d59913ad
children 4a4fa174a0ec
comparison
equal deleted inserted replaced
807:22cc8c1aec03 808:0f0ba45704b7
132 site = Site.objects.get_current() 132 site = Site.objects.get_current()
133 133
134 email_body = render_to_string('messages/notification_email.txt', { 134 email_body = render_to_string('messages/notification_email.txt', {
135 'site': site, 135 'site': site,
136 'msg': new_msg, 136 'msg': new_msg,
137 'options_url': reverse('messages-options_tab'), 137 'options_url': reverse('messages-options'),
138 }) 138 })
139 139
140 subject = 'New private message for %s at %s' % (new_msg.receiver.username, site.name) 140 subject = 'New private message for %s at %s' % (new_msg.receiver.username, site.name)
141 from_email = settings.GPP_NO_REPLY_EMAIL + '@' + site.domain 141 from_email = settings.GPP_NO_REPLY_EMAIL + '@' + site.domain
142 send_mail(subject, email_body, from_email, [new_msg.receiver.email]) 142 send_mail(subject, email_body, from_email, [new_msg.receiver.email])