From 5d840e99c71cd001f71c4e50451d036e8b2b3bc8 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 24 Jun 2014 14:57:50 +0530 Subject: adding links to the book details for completed books --- tbc/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tbc/views.py') 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 = {} -- cgit