Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LazyObject fools get_thumbnailer #24

Closed
funkybob opened this issue Jul 23, 2010 · 2 comments
Closed

LazyObject fools get_thumbnailer #24

funkybob opened this issue Jul 23, 2010 · 2 comments

Comments

@funkybob
Copy link

DefaultStorage derives from LazyObject, and so does not test true as an instance of Storage

>>> from django.core.files.storage import default_storage, Storage
>>> isinstance( default_storage, Storage )
False
>>> default_storage
<django.core.files.storage.DefaultStorage object at 0x2ac735da22d0>
@funkybob
Copy link
Author

A quick workaround is to change line 45 of files.py from:
source = default_storage
to:
source = get_storage_class()()

Tested and workig [though possibly not ideal.]

@SmileyChris
Copy link
Owner

Fixed in f6890af

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants