summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
authorhardythe12015-01-29 13:06:18 +0530
committerhardythe12015-01-29 13:06:18 +0530
commitd88019353141ceb7bc9c90d9137950763efbda73 (patch)
treee4a4326618878fbe632e85b5662f97a066e7e4e2 /tbc
parent8ba6844268a7ecba0e55ebfe17f07618b5d5af22 (diff)
downloadPython-TBC-Interface-d88019353141ceb7bc9c90d9137950763efbda73.tar.gz
Python-TBC-Interface-d88019353141ceb7bc9c90d9137950763efbda73.tar.bz2
Python-TBC-Interface-d88019353141ceb7bc9c90d9137950763efbda73.zip
formatted mail message
Diffstat (limited to 'tbc')
-rwxr-xr-xtbc/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 2130b05..2ea148a 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -1036,9 +1036,7 @@ def NotifyChanges(request, book_id=None):
msg = "Notified changes for old book"
changes_required = request.POST['changes_required']
subject = "Python-TBC: Corrections Required"
- message = "Hi, "+book.contributor.user.first_name+",\n"+\
- "Book titled, "+book.title+" requires following changes: \n"+\
- changes_required
+ message = """Hi, """+book.contributor.user.first_name+""",\n\nBook titled, '"""+book.title+"""' requires following changes\n"""+changes_required+"""\n\nKindly make the required corrections and submit the codes again.\n\nRegards,\nPython TBC Team\nFOSSEE - IIT Bombay"""
context.update(csrf(request))
add_log(request.user, book, CHANGE, msg,
proposal.id, chat=subject+'\n'+changes_required)