diff options
author | hardythe1 | 2014-02-20 16:05:12 +0530 |
---|---|---|
committer | hardythe1 | 2014-02-20 16:05:12 +0530 |
commit | 142c9c81e0bc7357712a414b23958851fabb6801 (patch) | |
tree | 27a6d30a3929c9bdc9f61eee419da3f3ce6b26e2 /tbc/views.py | |
parent | 7de8dd756e497fcce01356773b211dd62ee4df29 (diff) | |
download | Python-TBC-Interface-142c9c81e0bc7357712a414b23958851fabb6801.tar.gz Python-TBC-Interface-142c9c81e0bc7357712a414b23958851fabb6801.tar.bz2 Python-TBC-Interface-142c9c81e0bc7357712a414b23958851fabb6801.zip |
changing browse book view to show only approved books
Diffstat (limited to 'tbc/views.py')
-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 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: |