X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7b49c1a8c8a2c7634342ebcacb5520f8e243fda4..6b2eed40794bcfa3eb89c6847382e7cb7be17b4f:/apps/catalogue/views.py diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 0722f39b7..235a17dd5 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -789,7 +789,7 @@ def download_zip(request, format, book=None): def download_custom_pdf(request, book_fileid): - kwargs = models.Book.split_urlid(book) + kwargs = models.Book.split_fileid(book_fileid) if kwargs is None: raise Http404 book = get_object_or_404(models.Book, **kwargs)