feat: Add variety in wine list
This commit is contained in:
parent
f628477e95
commit
aff812bed1
1 changed files with 7 additions and 1 deletions
|
@ -5,7 +5,13 @@
|
||||||
<h2>{{ winery.name }}</h2>
|
<h2>{{ winery.name }}</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{% for wine in winery.wine_set.all %}
|
{% for wine in winery.wine_set.all %}
|
||||||
<li><a href="{% url 'wine:detail' wine.id %}">{{ wine.name }}</a></li>
|
<li><a href="{% url 'wine:detail' wine.id %}">{{ wine.name }}</a>
|
||||||
|
<class class="font-weight-light">
|
||||||
|
{% for variety in wine.variety.all %}
|
||||||
|
{{ variety.name }}{% if not forloop.last %}, {% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</class>
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Reference in a new issue