django-imagekit icon indicating copy to clipboard operation
django-imagekit copied to clipboard

Accept `cachefile_storage` as callable

Open noors312 opened this issue 2 years ago • 0 comments

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')

noors312 avatar Dec 06 '22 14:12 noors312