Use unmanaged keys instead of some magic.
[redakcja.git] / src / catalogue / templates / catalogue / author_detail.html
index 177f3be..9ee44c3 100644 (file)
@@ -49,7 +49,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>
@@ -75,7 +75,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>