X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/05f67adb27390c7a9cf214e83550d3bbca88c8f2..2277b557ee1f827c664bdb3a2b426ea71760c4d0:/apps/cover/views.py?ds=inline diff --git a/apps/cover/views.py b/apps/cover/views.py index 0c29209c..2a21b5c5 100644 --- a/apps/cover/views.py +++ b/apps/cover/views.py @@ -25,7 +25,7 @@ def preview(request, book, chunk=None, rev=None): If chunk and rev number are given, use version from given revision. If rev is not given, use publishable version. """ - import Image + from PIL import Image from librarian.cover import WLCover from librarian.dcparser import BookInfo @@ -56,7 +56,7 @@ def preview(request, book, chunk=None, rev=None): @require_POST def preview_from_xml(request): from hashlib import sha1 - import Image + from PIL import Image from os import makedirs from lxml import etree from librarian.cover import WLCover