X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d558ef2cdb31a67f24ffff34c30ccda3ebbee6c6..069d8476540f79fb4c37ccd219d6b794656baf0d:/apps/catalogue/views.py diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 7addb7fc1..aa77f4b59 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -119,12 +119,12 @@ def book_list(request, filter=None, template_name='catalogue/book_list.html'): def audiobook_list(request): - return book_list(request, Q(medias__type='mp3') | Q(medias__type='ogg'), + return book_list(request, Q(media__type='mp3') | Q(media__type='ogg'), template_name='catalogue/audiobook_list.html') def daisy_list(request): - return book_list(request, Q(medias__type='daisy'), + return book_list(request, Q(media__type='daisy'), template_name='catalogue/daisy_list.html')