fix in librarian
[wolnelektury.git] / apps / search / templatetags / search_tags.py
index a167f02..8dbad9d 100644 (file)
@@ -49,10 +49,7 @@ def book_searched(context, result):
         hit['snippet'] = snip
 
     return {
-        'related': book.related_info(),
+        'request': context['request'],
         '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 []
     }