diff options
author | hardythe1 | 2014-06-24 14:57:50 +0530 |
---|---|---|
committer | hardythe1 | 2014-06-24 14:57:50 +0530 |
commit | 5d840e99c71cd001f71c4e50451d036e8b2b3bc8 (patch) | |
tree | dcf68b63576773da812198c2f69e98e8836b57a2 /tbc/views.py | |
parent | b110b936a069eb0dbdb15f1e655f2634b9e39675 (diff) | |
download | Python-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-x | tbc/views.py | 6 |
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 = {} |