summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12014-03-12 18:08:26 +0530
committerhardythe12014-03-12 18:08:26 +0530
commit132aaf0a1d055741873ed738b7287dad7635e0e9 (patch)
tree7d05e1991d117b17688fefddbb02e0da43036ec5
parentc36488a3470b60a454005eda626f1d1f3af38f34 (diff)
parent351765822bc7a84c96c4a26d9936f319948a2f2e (diff)
downloadPython-TBC-Interface-132aaf0a1d055741873ed738b7287dad7635e0e9.tar.gz
Python-TBC-Interface-132aaf0a1d055741873ed738b7287dad7635e0e9.tar.bz2
Python-TBC-Interface-132aaf0a1d055741873ed738b7287dad7635e0e9.zip
Merge branch 'master' of https://github.com/FOSSEE/Python-TBC-Interface
-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]