Add variant-of to part detail view

This commit is contained in:
Oliver Walters 2019-05-26 00:41:24 +10:00
parent 2138977b07
commit e5bb6284db

View File

@ -52,6 +52,12 @@
<td><b>Description</b></td>
<td>{{ part.description }}</td>
</tr>
{% if part.variant_of %}
<tr>
<td><b>Variant Of</b></td>
<td><a href="{% url 'part-detail' part.variant_of.id %}">{{ part.variant_of.full_name }}</a></td>
</tr>
{% endif %}
{% if part.keywords %}
<tr>
<td><b>Keywords</b></td>