summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
authorhardythe12015-01-28 11:45:23 +0530
committerhardythe12015-01-28 11:45:23 +0530
commit4cd84a8dbc745e82920fbcbd76025b1c9b01901e (patch)
treeba0d03176fb2d0b0e2b1cdec0c34029c09a09de2 /tbc
parentc7ec89d3eef960780d10f68682d54ac768d2ceb5 (diff)
downloadPython-TBC-Interface-4cd84a8dbc745e82920fbcbd76025b1c9b01901e.tar.gz
Python-TBC-Interface-4cd84a8dbc745e82920fbcbd76025b1c9b01901e.tar.bz2
Python-TBC-Interface-4cd84a8dbc745e82920fbcbd76025b1c9b01901e.zip
fixed minor errors for submit book(old) and mail notification for proposal review
Diffstat (limited to 'tbc')
-rwxr-xr-xtbc/views.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tbc/views.py b/tbc/views.py
index ffe7466..7b115b2 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -328,7 +328,7 @@ def SubmitBook(request):
return HttpResponseRedirect("/login/?require_login=true")
else:
curr_user = request.user
- if curr_user.isauthenticated():
+ if curr_user.is_authenticated():
if not _checkProfile(curr_user):
return HttpResponseRedirect("/profile/?update=profile")
@@ -598,12 +598,12 @@ def ReviewProposals(request, proposal_id=None, textbook_id=None):
proposal.save()
add_log(user, proposal, CHANGE, 'Proposal accepted', proposal.id)
subject = "Python-TBC: Proposal Reviewed"
- message = """ Dear """+proposal.user.user.first_name+""",\n
- "Your proposal has been reviewed and the book titled """
- proposal.accepted.title+""" by """+proposal.accepted.author+""" has
- been approved. You may now submit the sample notebook on the
- interface. Once the sample notebook is approved, the book
- will be alloted to you."""
+ message = """Dear """+proposal.user.user.first_name+""", \n\n
+ Your recent proposal for Python TBC has been reviewed and the book
+ titled """+proposal.accepted.title+""" by """+\
+ proposal.accepted.author+""" has been approved. You may now submit
+ the sample notebook on the interface. Once the sample notebook is
+ approved, the book will be alloted to you."""
email_send(proposal.user.user.email, subject, message)
return HttpResponseRedirect("/proposal-review")
else: