summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/views.py')
-rw-r--r--tbc/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py
index bf36eb4..ba13a21 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -490,7 +490,7 @@ def BrowseBooks(request):
if request.method == 'POST':
category = request.POST['category']
if category == "all":
- books = Book.objects.all()
+ books = Book.objects.filter(approved=True)
else:
books = Book.objects.filter(category=category)
for book in books: