summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
authorhardythe12015-01-28 16:59:27 +0530
committerhardythe12015-01-28 16:59:27 +0530
commit1cf6d1735a9e64ea5821ce05f8c331f487cb24b6 (patch)
treeb8d95dbe2efb2684b3e604d896d99e576a400b65 /tbc
parented964ad86ec5ba7c9ae2cfddd13bd1a94f975b9b (diff)
downloadPython-TBC-Interface-1cf6d1735a9e64ea5821ce05f8c331f487cb24b6.tar.gz
Python-TBC-Interface-1cf6d1735a9e64ea5821ce05f8c331f487cb24b6.tar.bz2
Python-TBC-Interface-1cf6d1735a9e64ea5821ce05f8c331f487cb24b6.zip
added reviewer Trupti Kini
Diffstat (limited to 'tbc')
-rwxr-xr-xtbc/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 834ce84..524e0d1 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -338,7 +338,7 @@ def SubmitBook(request):
data = form.save(commit=False)
profile = Profile.objects.get(user=request.user.id)
data.contributor = profile
- data.reviewer = Reviewer.objects.get(pk=1)
+ data.reviewer = Reviewer.objects.get(pk=2)
data.save()
context['user'] = curr_user
curr_book = Book.objects.order_by("-id")[0]
@@ -591,7 +591,7 @@ def ReviewProposals(request, proposal_id=None, textbook_id=None):
new_book.year_of_pub = accepted_book.year_of_pub
new_book.no_chapters = accepted_book.no_chapters
new_book.contributor = proposal.user
- new_book.reviewer = Reviewer.objects.get(pk=1)
+ new_book.reviewer = Reviewer.objects.get(pk=2)
new_book.save()
proposal.status = "samples"
proposal.accepted = new_book
@@ -638,8 +638,8 @@ def DisapproveProposal(request, proposal_id=None):
changes_required = request.POST['changes_required']
subject = "Python-TBC: Corrections Required in the sample notebook"
message = """Hi, """+proposal.user.user.first_name+""",\n"""+\
-"""Sample notebook for the book titled, """+proposal.accepted.title+"""requires
-following changes: \n"""+changes_required
+"""Sample notebook for the book titled, """+proposal.accepted.title+""",\n
+requires following changes: \n"""+changes_required
add_log(request.user, proposal, CHANGE, 'Sample disapproved',
proposal_id, chat=subject + '\n' + changes_required)
context.update(csrf(request))