X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/fe3dc36ec67496aa078963997e86ea8cef65645d..2de0fde86873c879961365b4b9ce3904a158e84f:/src/documents/views.py?ds=inline 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)