Skip to content

Commit

Permalink
Correctly open source files from remote storages.
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Dec 21, 2011
1 parent fd7a213 commit bb4933f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions easy_thumbnails/files.py
Expand Up @@ -415,6 +415,12 @@ def get_thumbnail_modtime(self, thumbnail_name):
except NotImplementedError:
return None

def open(self, mode='rb'):
self.file.open(mode)

# open() doesn't alter the file's contents, but it does reset the pointer.
open.alters_data = True


class ThumbnailerFieldFile(FieldFile, Thumbnailer):
"""
Expand Down

0 comments on commit bb4933f

Please sign in to comment.