fixing same typo from copy pasta
authorBryan <btbonval@gmail.com>
Tue, 14 Jan 2014 09:25:23 +0000 (04:25 -0500)
committerBryan <btbonval@gmail.com>
Tue, 14 Jan 2014 09:25:23 +0000 (04:25 -0500)
karmaworld/apps/notes/gdrive.py

index a355f76e2d15395a97718556ededfa833c871507..42153dfec2c801c9abc94f3a2e538224d471894b 100644 (file)
@@ -239,7 +239,7 @@ def convert_raw_document(raw_document, user=None, session_key=None):
         # S3 upload wants a file-like object.
         htmlflo = StringIO(html)
         # Create the new key (key == filename in S3 bucket)
-        newkey = default_storage.bucket.new(filepath)
+        newkey = default_storage.bucket.new_key(filepath)
         # Upload data!
         newkey.send_file(htmlflo)
         if not newkey.exists():