Commits

Alan Justino committed a8064ad

Add key to entries cache on PUT

Comments (0)

Files changed (1)

storages/backends/s3boto.py

         key.set_contents_from_file(content, headers=headers, policy=self.acl,
                                  reduced_redundancy=self.reduced_redundancy,
                                  rewind=True, **kwargs)
+
+        # Add to entries cache before leaving
+        self.entries[self._encode_name(name)] = key
         return cleaned_name
 
     def delete(self, name):