fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor Django version bump.
[wolnelektury.git]
/
src
/
search
/
views.py
diff --git
a/src/search/views.py
b/src/search/views.py
index
2fe94f4
..
4d792e4
100644
(file)
--- a/
src/search/views.py
+++ b/
src/search/views.py
@@
-92,7
+92,7
@@
def hint(request):
'id': b.id,
'url': b.get_absolute_url()
}
'id': b.id,
'url': b.get_absolute_url()
}
- for b in Book.objects.filter(title__iregex='\m' + prefix)[:limit-len(data)]
+ for b in Book.objects.filter(
findable=True,
title__iregex='\m' + prefix)[:limit-len(data)]
]
callback = request.GET.get('callback', None)
if callback:
]
callback = request.GET.get('callback', None)
if callback: