[Fixed]-Django QuerySet displays improper string

1👍

✅

You need to iterate over ingredients too.

{% for i in drinks %}
    <h3>{{ i.title }}</h3>
    <p><b>Description:</b> <br>{{ i.description }}</p>
    {% for j in i.ingredient.all %}
       <p>{{ j }}</p>
{% endfor %}

Leave a comment