Commits

David Larlet committed b9ea683

Refs #18, change content.content_type to content.file.content_type as suggested by Anonymous to be Django 1.1 compatible

Comments (0)

Files changed (2)

backends/mosso.py

         else:
             content_str = content.read()
         cloud_obj = self.container.create_object(name)
-        cloud_obj.content_type = content.content_type
+        cloud_obj.content_type = content.file.content_type
         cloud_obj.send(content_str)
         content.close()
         return name

backends/s3boto.py

     
     def _save(self, name, content):
         headers = self.headers
-        headers['Content-Type'] = content.content_type
+        headers['Content-Type'] = content.file.content_type
         k = self.bucket.get_key(name)
         if not k:
             k = self.bucket.new_key(name)