fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Widget upgrade.
[wolnelektury.git]
/
apps
/
search
/
templatetags
/
search_tags.py
diff --git
a/apps/search/templatetags/search_tags.py
b/apps/search/templatetags/search_tags.py
index
a167f02
..
8dbad9d
100644
(file)
--- a/
apps/search/templatetags/search_tags.py
+++ b/
apps/search/templatetags/search_tags.py
@@
-49,10
+49,7
@@
def book_searched(context, result):
hit['snippet'] = snip
return {
hit['snippet'] = snip
return {
- 're
lated': book.related_info()
,
+ 're
quest': context['request']
,
'book': book,
'book': book,
- 'main_link': book.get_absolute_url(),
- 'request': context.get('request'),
- 'hits': hits and zip(*hits)[1] or [],
- 'main_link': book.get_absolute_url(),
+ 'hits': hits and zip(*hits)[1] or []
}
}