Use unmanaged keys instead of some magic.
[redakcja.git] / src / catalogue / templates / catalogue / catalogue.html
index 715ba8f..dca509e 100644 (file)
@@ -50,7 +50,7 @@
                 {{ book.get_priorty_display }}
               </td>
               <td>
-                {% for b in book.document_books %}
+                {% for b in book.document_books.all %}
                   <a href="{{ b.get_absolute_url }}">
                     {{ b }}
                   </a>
@@ -76,7 +76,7 @@
                 {{ book.get_priorty_display }}
               </td>
               <td>
-                {% for b in book.document_books %}
+                {% for b in book.document_books.all %}
                   <a href="{{ b.get_absolute_url }}">
                     {{ b }}
                   </a>