fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Paged history loading.
[redakcja.git]
/
src
/
documents
/
views.py
diff --git
a/src/documents/views.py
b/src/documents/views.py
index
a5b9971
..
39320d5
100644
(file)
--- 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())
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)
@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')
book.slug + '.pdf', 'application/pdf')
+@login_required
@never_cache
def book_epub(request, slug):
book = get_object_or_404(Book, slug=slug)
@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
return response
+@login_required
@never_cache
def book_mobi(request, slug):
book = get_object_or_404(Book, slug=slug)
@never_cache
def book_mobi(request, slug):
book = get_object_or_404(Book, slug=slug)