Updated and fixes.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_text.html
index 158396f..78067d7 100644 (file)
 {% block footer %}
   <div id="wltoc" class="box">
     {% if book.parent %}
-      {% for b in book.ancestor.all %}
+      {% for b in book.ancestors %}
         {% if forloop.counter > 1 %}
           <li>
         {% endif %}
            "label": "{{ ref.entity.label }}",
            "description": "{{ ref.entity.description }}",
            "wikipedia_link": "{{ ref.entity.wikipedia_link }}"
-       }{% if not forloop.last %},{% endif %}
+       },
        {% endif %}
        {% endfor %}
+       "": null
   }
   </script>
   {% endlocalize %}