fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
05e5b36
)
fix weird bug with author hints
author
Jan Szejko
<janek37@gmail.com>
Mon, 18 Dec 2017 14:05:20 +0000
(15:05 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Mon, 18 Dec 2017 14:05:20 +0000
(15:05 +0100)
src/search/views.py
patch
|
blob
|
history
diff --git
a/src/search/views.py
b/src/search/views.py
index
64382e2
..
309db73
100644
(file)
--- a/
src/search/views.py
+++ b/
src/search/views.py
@@
-75,7
+75,7
@@
def hint(request):
limit = 20
authors = Tag.objects.filter(
limit = 20
authors = Tag.objects.filter(
- category='author', name__iregex='\m' + prefix).only('name', 'id', 'slug', 'category')
+ category='author', name_
pl_
_iregex='\m' + prefix).only('name', 'id', 'slug', 'category')
data = [
{
'label': author.name,
data = [
{
'label': author.name,