summaryrefslogtreecommitdiff
path: root/website/views.py
diff options
context:
space:
mode:
authorJayaram Pai2014-05-04 10:36:30 +0530
committerJayaram Pai2014-05-04 10:36:30 +0530
commit0eded11fe3dc48f05adcf53a7f9a352b88ed24f4 (patch)
tree7d926c7075760a8b3b4f32384ca3aed08418c07c /website/views.py
parent8d21bc76eb8b779e655847c12d6c503c833764a4 (diff)
downloadspoken-tutorial-forums-0eded11fe3dc48f05adcf53a7f9a352b88ed24f4.tar.gz
spoken-tutorial-forums-0eded11fe3dc48f05adcf53a7f9a352b88ed24f4.tar.bz2
spoken-tutorial-forums-0eded11fe3dc48f05adcf53a7f9a352b88ed24f4.zip
changed new_question email content
Diffstat (limited to 'website/views.py')
-rw-r--r--website/views.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/website/views.py b/website/views.py
index 842b12b..221a265 100644
--- a/website/views.py
+++ b/website/views.py
@@ -233,11 +233,13 @@ def new_question(request):
# Sending email when a new question is asked
subject = 'New Forum Question'
message = """
- A new question has been posted in the Spoken-Tutorial Forum. <br>
- Category: <b>{0}</b><br>
- Tutorial: <b>{1}</b><br>
- Link: <a href="{2}">{2}</a><br>
+ The following new question has been posted in the Spoken Tutorial Forum: <br>
+ Title: <b>{0}</b><br>
+ Category: <b>{1}</b><br>
+ Tutorial: <b>{2}</b><br>
+ Link: <a href="{3}">{3}</a><br>
""".format(
+ question.title,
question.category,
question.tutorial,
'http://forums.spoken-tutorial.org/question/'+str(question.id)