X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/fe3dc36ec67496aa078963997e86ea8cef65645d..8e8b2c44fc1345b2b4ae2806f2ef5f2187d760c0:/src/documents/views.py diff --git a/src/documents/views.py b/src/documents/views.py index a5b99710..39320d5e 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -262,6 +262,7 @@ def book_html(request, slug): return render(request, 'documents/book_text.html', locals()) +@login_required @never_cache def book_pdf(request, slug, mobile=False): book = get_object_or_404(Book, slug=slug) @@ -278,6 +279,7 @@ def book_pdf(request, slug, mobile=False): book.slug + '.pdf', 'application/pdf') +@login_required @never_cache def book_epub(request, slug): book = get_object_or_404(Book, slug=slug) @@ -296,6 +298,7 @@ def book_epub(request, slug): return response +@login_required @never_cache def book_mobi(request, slug): book = get_object_or_404(Book, slug=slug)