X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b80f646690239d9a90d708d57780f328328b26d5..9ee0bb19ad935fd57720bb523a6b93865c132a93:/apps/search/views.py?ds=inline diff --git a/apps/search/views.py b/apps/search/views.py index 438989c01..c50077005 100644 --- a/apps/search/views.py +++ b/apps/search/views.py @@ -108,7 +108,7 @@ def main(request): if 'q' in request.GET: tags = request.GET.get('tags', '') query = request.GET['q'] - book_id = request.get('book', None) + book_id = request.GET.get('book', None) book = None if book_id is not None: book = get_object_or_404(Book, id=book_id)