The chapters link on view textbook page must use the new views.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 01 Feb 2011 04:50:18 +0530
changeset 544 17c60a9c2439
parent 543 57b0f8f80ebf
child 545 3a86d85333a3
The chapters link on view textbook page must use the new views.
pytask/templates/task/view_textbook.html
--- a/pytask/templates/task/view_textbook.html	Tue Feb 01 04:34:05 2011 +0530
+++ b/pytask/templates/task/view_textbook.html	Tue Feb 01 04:50:18 2011 +0530
@@ -38,7 +38,7 @@
       <table>
       {% for chap in chapters %}
       <tr>
-        <td><a href="{% url view_task chap.id %}">{{chap.title}}</a> </td>
+        <td><a href="{% url view_chapter chap.parent.id chap.id %}">{{chap.title}}</a> </td>
       </tr>
       {% endfor %}
       </table>