fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sort by name is assign form
[redakcja.git]
/
apps
/
catalogue
/
views.py
diff --git
a/apps/catalogue/views.py
b/apps/catalogue/views.py
index
d234ab0
..
2ee94ae
100644
(file)
--- a/
apps/catalogue/views.py
+++ b/
apps/catalogue/views.py
@@
-224,8
+224,9
@@
def book_html(request, slug):
if not book.accessible(request):
return HttpResponseForbidden("Not authorized.")
if not book.accessible(request):
return HttpResponseForbidden("Not authorized.")
- doc = book.wldocument()
- html = doc.as_html(parse_dublincore=False, flags=['full-page']).get_string()
+ doc = book.wldocument(parse_dublincore=False)
+ html = doc.as_html(flags=['full-page'])
+ html = html.get_string() if html is not None else ''
response = http.HttpResponse(html, content_type='text/html', mimetype='text/html')
return response
response = http.HttpResponse(html, content_type='text/html', mimetype='text/html')
return response