Commits

Rich Leland committed b50a844

Applied patch for #44 from adamnelson.

  • Participants
  • Parent commits 66d7ac6

Comments (0)

Files changed (1)

storages/backends/s3boto.py

     
     def url(self, name):
         name = self._clean_name(name)
-        if self.bucket.get_key(name) is None:
-            return ''
-        return self.bucket.get_key(name).generate_url(QUERYSTRING_EXPIRE, method='GET', query_auth=QUERYSTRING_AUTH)
+        return self.connection.generate_url(QUERYSTRING_EXPIRE, method='GET', \
+                bucket=self.bucket.name, key=name, query_auth=QUERYSTRING_AUTH)
 
     def get_available_name(self, name):
         """ Overwrite existing file with the same name. """