django-imagekit
django-imagekit copied to clipboard
Accept `cachefile_storage` as callable
if not storage:
storage = getattr(generator, 'cachefile_storage', None)
if storage and callable(storage):
storage = storage()
else:
storage = get_singleton(settings.IMAGEKIT_DEFAULT_FILE_STORAGE, 'file storage backend')