Mercurial > public > sg101
comparison gpp/messages/forms.py @ 441:33d0c55e57a9
Fixing the link to the private messages options tab in the PM notification email.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 25 May 2011 02:39:08 +0000 |
parents | 241c80ff16c5 |
children | 2d96d9bcf0de |
comparison
equal
deleted
inserted
replaced
440:ac9217eef610 | 441:33d0c55e57a9 |
---|---|
114 site = Site.objects.get_current() | 114 site = Site.objects.get_current() |
115 | 115 |
116 email_body = render_to_string('messages/notification_email.txt', { | 116 email_body = render_to_string('messages/notification_email.txt', { |
117 'site': site, | 117 'site': site, |
118 'msg': new_msg, | 118 'msg': new_msg, |
119 'options_url': reverse('messages-options'), | 119 'options_url': reverse('messages-options_tab'), |
120 }) | 120 }) |
121 | 121 |
122 subject = 'New private message for %s at %s' % (new_msg.receiver.username, site.name) | 122 subject = 'New private message for %s at %s' % (new_msg.receiver.username, site.name) |
123 from_email = settings.GPP_NO_REPLY_EMAIL + '@' + site.domain | 123 from_email = settings.GPP_NO_REPLY_EMAIL + '@' + site.domain |
124 send_mail(subject, email_body, from_email, [new_msg.receiver.email]) | 124 send_mail(subject, email_body, from_email, [new_msg.receiver.email]) |