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