Mercurial > public > sg101
view gpp/templates/messages/notification_email.txt @ 318:c550933ff5b6
Fix a bug where you'd get an error when trying to delete a forum thread (topic does not exist). Apparently when you call topic.delete() the posts would get deleted, but the signal handler for each one would run, and it would try to update the topic's post count or something, but the topic was gone? Reworked the code a bit and explicitly delete the posts first. I also added a sync() call on the parent forum since post counts were not getting adjusted.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 Feb 2011 21:46:52 +0000 |
parents | c7c427411f03 |
children | accfc1fdb88d |
line wrap: on
line source
Dear {{ msg.receiver.username }}, You have just received a new private message at {{ site.name }}. The message details are as follows: ----- From: {{ msg.sender.username }} Subject: {{ msg.subject }} {{ msg.message }} ----- You may reply to this message by visiting the following link: http://{{ site.domain }}{{ msg.get_absolute_url }} Thanks, The staff at {{ site.name }}. http://{{ site.domain }} P.S. You are receiving this email because you have elected to receive notifications of new private messages. To stop receiving these emails, please update your private message options at this link: http://{{ site.domain }}{{ options_url }} This is an automated email, please do not reply to this message.