2👍
✅
In your template, you can fetch related albums for that artist:
<ul>
{% for artist in object_list %}
<li> {{ artist }}
<ul>
{% for album in artist.album_set.all %}
<li>{{ album }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
Source:stackexchange.com