diff options
author | hardythe1 | 2015-05-06 15:46:04 +0530 |
---|---|---|
committer | hardythe1 | 2015-05-06 15:46:04 +0530 |
commit | dc6dd918349a046e30446d3087943eb241d8cc05 (patch) | |
tree | 61405f9d376b2f9d3f76e88cb35dbde56a5abda2 | |
parent | b43adfb9bbda839cc643da7ddb7a6b80d824a10d (diff) | |
download | Python-TBC-Interface-dc6dd918349a046e30446d3087943eb241d8cc05.tar.gz Python-TBC-Interface-dc6dd918349a046e30446d3087943eb241d8cc05.tar.bz2 Python-TBC-Interface-dc6dd918349a046e30446d3087943eb241d8cc05.zip |
Send email once the proposal has been submitted
-rwxr-xr-x | tbc/views.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py index 5ea7fb2..cd54ad2 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -491,7 +491,6 @@ def SubmitProposal(request): subject = "Python TBC: Proposal Acknowledgement" message = """Dear """+proposal.user.user.first_name+""",\n Thank you for showing interest in contributing to Python Textbook Companion Activity.\n\nWe have received your proposal. Details of the books proposed by you are given below:\n\nBook Preference 1\nTitle: """+proposed_books[0].title+"""\nAuthor: """+proposed_books[0].author+"""\nEdition: """+proposed_books[0].edition+"""\nISBN: """+proposed_books[0].isbn+"""\nPublisher: """+proposed_books[0].publisher_place+"""\nYear of Publication: """+proposed_books[0].year_of_pub+"""\nBook Preference 2\nTitle: """+proposed_books[1].title+"""\nAuthor: """+proposed_books[1].author+"""\nEdition: """+proposed_books[1].edition+"""\nISBN: """+proposed_books[1].isbn+"""\nPublisher: """+proposed_books[1].publisher_place+"""\nYear of Publication: """+proposed_books[1].year_of_pub+"""\nBook Preference 3\nTitle: """+proposed_books[2].title+"""\nAuthor: """+proposed_books[2].author+"""\nEdition: """+proposed_books[2].edition+"""\nISBN: """+proposed_books[2].isbn+"""\nPublisher: """+proposed_books[2].publisher_place+"""\nYear of Publication: """+proposed_books[2].year_of_pub+"""\n\nPlese be patient while we review your proposal. You will be notified to submit sample notebook once the proposal hase been reviewed.\n\nRegards,\nPython TBC Team\nFOSSEE - IIT Bombay""" - return HttpResponse(message) add_log(curr_user, proposal, CHANGE, 'Proposed Books', proposal.id) email_send(proposal.user.user.email, subject, message) return HttpResponseRedirect('/?proposal=submitted') |