File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
filer/management/commands Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 33from django .core .management .base import BaseCommand
44from django .utils .module_loading import import_string
55
6+ from PIL import UnidentifiedImageError
7+
68from filer import settings as filer_settings
79from filer .models .filemodels import File
810from filer .utils .loader import load_model
911
10- from PIL import UnidentifiedImageError
11-
1212
1313class Command (BaseCommand ):
1414 help = "Check for orphaned files, missing file references, and set image dimensions."
@@ -152,8 +152,10 @@ def image_dimensions(self, options):
152152 and save them, handling SVG files and possible image errors.
153153 """
154154 from django .db .models import Q
155+
155156 import easy_thumbnails
156157 from easy_thumbnails .VIL import Image as VILImage
158+
157159 from filer .utils .compatibility import PILImage
158160
159161 ImageModel = load_model (filer_settings .FILER_IMAGE_MODEL )
You can’t perform that action at this time.
0 commit comments