Created
May 24, 2015 20:30
-
-
Save stefanfoulis/dda6b4a2ba91a615b9bb to your computer and use it in GitHub Desktop.
accessing the django file object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# f is the File model | |
f = filer.models.File.objects.get(...) | |
# f.file is a django file field (for images it's an easy-thumbnails image field) | |
f.file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Boogymanx