Ticket #8203: patch-#8203.diff
File patch-#8203.diff, 697 bytes (added by , 16 years ago) |
---|
-
django/core/files/storage.py
146 146 try: 147 147 # This file has a file path that we can move. 148 148 if hasattr(content, 'temporary_file_path'): 149 if os.name == 'nt': 150 # If the temporary file is not closed on Windows, 151 # file_move_safe will fail. 152 content.close() 149 153 file_move_safe(content.temporary_file_path(), full_path) 150 154 content.close() 151 155