Permalink
Browse files

Correctly open source files from remote storages.

  • Loading branch information...
1 parent fd7a213 commit bb4933f33caa075e48a141a558313d366e0f015c @SmileyChris SmileyChris committed Dec 21, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 easy_thumbnails/files.py
View
@@ -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):
"""

0 comments on commit bb4933f

Please sign in to comment.