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:
bbf9e60
)
add ids in hints
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 6 Aug 2025 13:23:57 +0000
(15:23 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 6 Aug 2025 13:23:57 +0000
(15:23 +0200)
src/search/views.py
patch
|
blob
|
history
diff --git
a/src/search/views.py
b/src/search/views.py
index
02204af
..
6066cd9
100644
(file)
--- a/
src/search/views.py
+++ b/
src/search/views.py
@@
-37,6
+37,7
@@
def get_hints(prefix, user=None, limit=10):
'url': author.get_absolute_url(),
'img': get_thumbnail(author.photo, '72x72', crop='top').url if author.photo else '',
'slug': author.slug,
'url': author.get_absolute_url(),
'img': get_thumbnail(author.photo, '72x72', crop='top').url if author.photo else '',
'slug': author.slug,
+ 'id': author.id,
}
for author in authors[:limit - len(data)]
])
}
for author in authors[:limit - len(data)]
])
@@
-62,6
+63,7
@@
def get_hints(prefix, user=None, limit=10):
'label': tag.name,
'url': tag.get_absolute_url(),
'slug': tag.slug,
'label': tag.name,
'url': tag.get_absolute_url(),
'slug': tag.slug,
+ 'id': tag.id,
}
for tag in tags[:limit - len(data)]
])
}
for tag in tags[:limit - len(data)]
])