X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c48ff2d3e64065793c24cfb8ae151f02b8e6646a..440a9c4126fbfb66c90747887b9df6a006c62f8f:/src/cover/views.py?ds=inline diff --git a/src/cover/views.py b/src/cover/views.py index a99c8d5e..8a6c93aa 100644 --- a/src/cover/views.py +++ b/src/cover/views.py @@ -35,7 +35,7 @@ def preview(request, book, chunk=None, rev=None): else: revision = chunk.publishable() if revision is None: - raise Http404 + revision = chunk.head xml = revision.materialize().encode('utf-8') try: