html = html.get_string() if html is not None else ''
# response = http.HttpResponse(html, content_type='text/html')
html = html.get_string() if html is not None else ''
# response = http.HttpResponse(html, content_type='text/html')
from catalogue.ebook_utils import serve_file
return serve_file(pdf_file.get_filename(),
book.slug + '.pdf', 'application/pdf')
from catalogue.ebook_utils import serve_file
return serve_file(pdf_file.get_filename(),
book.slug + '.pdf', 'application/pdf')