Skip to content

Commit dfd1e3f

Browse files
authored
Fix subprojects list template (#225)
`subproject` is a Project object, not a relationship object.
1 parent 8c74a16 commit dfd1e3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readthedocsext/theme/templates/projects/projectrelationship_list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
{% trans "Nested subprojects are not supported" %}
1717
</div>
1818
<p>
19-
{% blocktrans trimmed with project=superproject.parent.name %}
19+
{% blocktrans trimmed with project=superproject.name %}
2020
This project is already configured as a subproject of {{ project }}.
2121
{% endblocktrans %}
2222
</p>
2323

2424
<p>
25-
<a href="{% url 'projects_subprojects' project_slug=superproject.parent %}">
26-
{% blocktrans trimmed with project=superproject.parent.name %}
25+
<a href="{% url 'projects_subprojects' project_slug=superproject.slug %}">
26+
{% blocktrans trimmed with project=superproject.name %}
2727
View all subprojects of {{ project }}
2828
{% endblocktrans %}
2929
</a>

0 commit comments

Comments
 (0)