Fixed related work links
This commit is contained in:
parent
b11cfcd6ea
commit
95ee92cef6
@ -49,7 +49,7 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% if work.parent %}
|
{% if work.parent %}
|
||||||
<p>From <a href="{% url 'work_detail' collection.pk work.parent.pk %}">{{ work.parent.name }} - {{ work.parent.composer }}</a>
|
<p>From <a href="{% url 'work_detail' work.parent.collection.pk work.parent.pk %}">{{ work.parent.name }} - {{ work.parent.composer }}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -57,7 +57,7 @@
|
|||||||
<h3>Related</h3>
|
<h3>Related</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{% for related in work.related_works.all %}
|
{% for related in work.related_works.all %}
|
||||||
<li><a href="{% url 'work_detail' related.pk %}">{{ related.name }} - {{ related.composer }}</a></li>
|
<li><a href="{% url 'work_detail' related.collection.pk related.pk %}">{{ related.name }} - {{ related.composer }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user