diff options
Diffstat (limited to 'tbc/views.py')
-rw-r--r-- | tbc/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tbc/views.py b/tbc/views.py index e7c3171..762f0bd 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -473,6 +473,7 @@ def NotifyChanges(request, book_id=None): def BrowseBooks(request): context = {} + category = None if request.user.is_anonymous(): context['anonymous'] = True else: @@ -487,8 +488,7 @@ def BrowseBooks(request): for book in books: images.append(ScreenShots.objects.filter(book=book)[0]) else: - category = 'computer science' - books = Book.objects.filter(category='computer science') + books = Book.objects.all() for book in books: images.append(ScreenShots.objects.filter(book=book)[0]) context.update(csrf(request)) |