Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correctly open source files from remote storages.

  • Loading branch information...
commit bb4933f33caa075e48a141a558313d366e0f015c 1 parent fd7a213
Chris Beaven SmileyChris authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 easy_thumbnails/files.py
6 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):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.