return render(
request,
- 'catalogue/2021/book_detail.html' if new_layout.value else 'catalogue/book_detail.html',
+ 'catalogue/2022/book_detail.html' if new_layout.value else 'catalogue/book_detail.html',
{
'book': book,
'book_children': book.children.all().order_by('parent_number', 'sort_key'),
if not book.has_media('mp3'):
raise Http404
- audiobooks, projects = book.get_audiobooks()
+ audiobooks, projects, total_duration = book.get_audiobooks()
return render(
request,