fixing typo
authorBryan <btbonval@gmail.com>
Tue, 14 Jan 2014 09:18:44 +0000 (04:18 -0500)
committerBryan <btbonval@gmail.com>
Tue, 14 Jan 2014 09:18:44 +0000 (04:18 -0500)
karmaworld/apps/notes/management/commands/populate_s3.py

index 83c5d696a1ec9d1a5ceebbf5210cd19b764bb75d..8cc19f4d3bc12176a94615ecde5248eb00133420 100644 (file)
@@ -43,7 +43,7 @@ class Command(BaseCommand):
             # 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)