From 21537f708f61dcab72afa7b825c127d26188785d Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Sat, 15 Mar 2014 22:52:02 +0530 Subject: change to fetch books which are approved & of required category --- tbc/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbc/views.py b/tbc/views.py index 8fde0a8..f41abf9 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -495,7 +495,7 @@ def BrowseBooks(request): if category == "all": books = Book.objects.filter(approved=True) else: - books = Book.objects.filter(category=category) + books = Book.objects.filter(category=category, approved=True) else: books = Book.objects.filter(approved=True) for book in books: -- cgit