X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c48ff2d3e64065793c24cfb8ae151f02b8e6646a..4186d2daff23d0de25e2cdaeb6704d0dfe0feec1:/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: