Use unmanaged keys instead of some magic.
[redakcja.git] / src / catalogue / templates / catalogue / book_detail.html
index 2c59c35..85cfcc9 100644 (file)
@@ -67,7 +67,7 @@
             {{ book.get_priorty_display }}
           </td>
           <td>
-            {% for b in book.get_document_books %}
+            {% for b in book.document_books.all %}
               <a href="{{ b.get_absolute_url }}">
                 {{ b }}
               </a>