summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
Diffstat (limited to 'tbc')
-rw-r--r--tbc/forms.py2
-rw-r--r--tbc/static/templates/how.html8
-rw-r--r--tbc/views.py1
3 files changed, 9 insertions, 2 deletions
diff --git a/tbc/forms.py b/tbc/forms.py
index cf99afc..3fb9932 100644
--- a/tbc/forms.py
+++ b/tbc/forms.py
@@ -52,7 +52,7 @@ class BookForm(forms.ModelForm):
self.fields['no_chapters'].label = "Number of Chapter"
class Meta:
model = Book
- exclude = ('contributor', 'approved')
+ exclude = ('contributor', 'approved', 'reviewer')
widgets = {
'title':forms.TextInput(attrs={'placeholder':'Title of the Book'}),
'author':forms.TextInput(attrs={'placeholder':'Author of the Book'}),
diff --git a/tbc/static/templates/how.html b/tbc/static/templates/how.html
index 9e948f2..c5794b0 100644
--- a/tbc/static/templates/how.html
+++ b/tbc/static/templates/how.html
@@ -2,7 +2,13 @@
<ol>
<li>Contributor selects 3 textbooks and sends proposal through mail to <strong>textbook[at]fossee[dot]in</strong> in the preferred order.</li>
<ul>
- <li>Contributor is requested to visit the website and ensure that the books proposed have not been completed or undertaken by some other contributor. This is to avoid multiple contributors working on the same books. </li>
+ <li>Contributor is requested to visit the following mentioned links and ensure that the
+ books proposed have not been completed or undertaken by some other contributor.
+ This is to avoid multiple contributors working on the same books. <br>
+ <i>Links:</i>
+ <a href="http://fosseeapps.in/pytask/ConvertedTextBooks/" target="_blank">Completed books</a>,
+ <a href="http://fosseeapps.in/pytask/booksUnderProgress/" target="_blank">Books under progress</a>
+ </li>
<li>Please make sure that the book proposed has at least 60 examples. </li>
<li>The Edition and the ISBN number of all the textbooks should also be mentioned.</li>
</ul>
diff --git a/tbc/views.py b/tbc/views.py
index 194b73f..e4a818f 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -186,6 +186,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.save()
context['user'] = curr_user
curr_book = Book.objects.order_by("-id")[0]