fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'search' of git+ssh://stigma.fnp/home/mkoziej/wl into search
[wolnelektury.git]
/
apps
/
search
/
views.py
diff --git
a/apps/search/views.py
b/apps/search/views.py
index
438989c
..
c500770
100644
(file)
--- 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)