small fixes
[wolnelektury.git] / apps / search / templates / newsearch / search.html
index c494ca6..635bae8 100644 (file)
       <li>
        <p><a href="{{result.book.get_absolute_url}}">{{result.book.pretty_title}}</a> (id: {{result.book_id}}, score: {{result.score}})</p>
        <ul>
       <li>
        <p><a href="{{result.book.get_absolute_url}}">{{result.book.pretty_title}}</a> (id: {{result.book_id}}, score: {{result.score}})</p>
        <ul>
-         {% for hit in result.hits %}
+         {% for snip in hit.snippets %}
          <li>
          <li>
-           {% for snip in hit.3.snippets %}
-             {{snip|safe}}<br/>
-           {% endfor %}
+           {{snip|safe}}<br/>
          </li>
          {% endfor %}
 
          </li>
          {% endfor %}