X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a9b4700e3cd649a6dddc3b72dc0bd632f7841c74..dd79289baf8168c654faaaa5c8e5840e3a63f94e:/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)