diff options
-rw-r--r-- | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |