mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
Fix circular import utils > imagecache.backends
This commit is contained in:
parent
5fe5a73cb1
commit
2a33a2ad88
1 changed files with 5 additions and 2 deletions
|
|
@ -439,5 +439,8 @@ class SpecWrapper(object):
|
|||
self.options = getattr(spec, 'options', None)
|
||||
self.autoconvert = getattr(spec, 'autoconvert', True)
|
||||
self.storage = getattr(spec, 'storage', None)
|
||||
self.image_cache_backend = getattr(spec, 'image_cache_backend', None) \
|
||||
or get_default_image_cache_backend()
|
||||
self.image_cache_backend = getattr(spec, 'image_cache_backend', None)
|
||||
|
||||
if not self.image_cache_backend:
|
||||
from .imagecache.backends import get_default_image_cache_backend
|
||||
self.image_cache_backend = get_default_image_cache_backend()
|
||||
|
|
|
|||
Loading…
Reference in a new issue