My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 87: Please add the author to the template-context of the notify email
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by a...@rcs4u.de, Feb 24, 2010
It is helpfull for users if the notify-email for subscribed threads
contains the author of the new reply. 

I added this with this one-liner:

{{{
Index: forum/views.py
===================================================================
--- forum/views.py	(revision 54)
+++ forum/views.py	(working copy)
@@ -145,6 +145,7 @@
                 mail_tpl = loader.get_template('forum/notify.txt')
                 c = Context({
                     'body': wordwrap(striptags(body), 72),
+                    'author': request.user,
                     'site' : Site.objects.get_current(),
                     'thread': t,
                     })
}}}



Powered by Google Project Hosting