summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
authorhardythe12014-06-24 14:57:50 +0530
committerhardythe12014-06-24 14:57:50 +0530
commit5d840e99c71cd001f71c4e50451d036e8b2b3bc8 (patch)
treedcf68b63576773da812198c2f69e98e8836b57a2 /tbc/views.py
parentb110b936a069eb0dbdb15f1e655f2634b9e39675 (diff)
downloadPython-TBC-Interface-5d840e99c71cd001f71c4e50451d036e8b2b3bc8.tar.gz
Python-TBC-Interface-5d840e99c71cd001f71c4e50451d036e8b2b3bc8.tar.bz2
Python-TBC-Interface-5d840e99c71cd001f71c4e50451d036e8b2b3bc8.zip
adding links to the book details for completed books
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 1ef6870..b1388eb 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -627,8 +627,10 @@ def CompletedBooks(request):
context['reviewer'] = request.user
else:
context['user'] = request.user
- return render_to_response('tbc/converted_textbooks.html', context)
-
+ completed_books = Book.objects.filter(approved=True)
+ context['completed_books'] = completed_books
+ return render_to_response('tbc/completed_books.html', context)
+
def BooksUnderProgress(request):
context = {}