Fixed complex books (books with hasPart).
[wolnelektury.git] / wolnelektury / templates / catalogue / book_short.html
index 7f93a59..368126d 100644 (file)
@@ -2,7 +2,7 @@
     <div class="change-sets">
         <a href="{% url catalogue.views.book_sets book.slug %}" class="jqm-trigger">Na półkę!</a>
     </div>
-    {% if book.children %}
+    {% if book.children.all|length %}
         <div class="book-parent-thumbnail"></div>
     {% else %}
         <div class="book-thumbnail"></div>