Добавил недостающие шаблоны, добавил related_name в моделях, добавил недостающие urls
This commit is contained in:
10
music_storage/templates/music/artist_detail.html
Normal file
10
music_storage/templates/music/artist_detail.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Artist Detail{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ artist.name }}</h1>
|
||||
<p>Genre: {{ artist.genre }}</p>
|
||||
<h2>Albums</h2>
|
||||
{% include 'components/album_list.html' with albums=artist.albums.all %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user