aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--django/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/django/__init__.py b/django/__init__.py
index 2ae3040..3e57e15 100644
--- a/django/__init__.py
+++ b/django/__init__.py
@@ -77,7 +77,11 @@ class S3Storage(Storage):
77 77
78 def _save(self, filename, content): 78 def _save(self, filename, content):
79 # a stupid hack 79 # a stupid hack
80 content = content.file 80 try:
81 content.url = self.url
82 except AttributeError, e:
83 content = content.file
84
81 try: 85 try:
82 data = content.read() 86 data = content.read()
83 except IOError, err: 87 except IOError, err: